Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke,tolerance=1e-07,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|advancedSolenoid.armature.stopper_xMax.v_rel|advancedSolenoid.c_par1.v|advancedSolenoid.c_par2.v|advancedSolenoid.coil1.Phi|advancedSolenoid.coil2.Phi|advancedSolenoid.x|simpleSolenoid.armature.stopper_xMax.v_rel|simpleSolenoid.coil.Phi|simpleSolenoid.x",fileNamePrefix="Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke") translateModel(Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke,tolerance=1e-07,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|advancedSolenoid.armature.stopper_xMax.v_rel|advancedSolenoid.c_par1.v|advancedSolenoid.c_par2.v|advancedSolenoid.coil1.Phi|advancedSolenoid.coil2.Phi|advancedSolenoid.x|simpleSolenoid.armature.stopper_xMax.v_rel|simpleSolenoid.coil.Phi|simpleSolenoid.x",fileNamePrefix="Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.00105/0.00105, allocations: 118.8 kB / 17.79 MB, free: 5.266 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001097/0.001097, allocations: 201.2 kB / 18.73 MB, free: 4.32 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.309/1.309, allocations: 227.4 MB / 246.9 MB, free: 10.47 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001141/0.001141, allocations: 59.91 kB / 358.7 MB, free: 12.94 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2595/0.2607, allocations: 50.55 MB / 409.2 MB, free: 1.766 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke): time 0.01154/0.2723, allocations: 11.38 MB / 420.6 MB, free: 6.332 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.006922/0.2792, allocations: 3.865 MB / 424.5 MB, free: 2.457 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001943/0.2812, allocations: 35.88 kB / 424.5 MB, free: 2.422 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.007062/0.2883, allocations: 8.151 MB / 432.7 MB, free: 10.25 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006615/0.2949, allocations: 4.702 MB / 437.4 MB, free: 5.539 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002341/0.2973, allocations: 0.9205 MB / 438.3 MB, free: 4.617 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.005447/0.3028, allocations: 5.412 MB / 443.7 MB, free: 15.19 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001139/0.3039, allocations: 0.9037 MB / 444.6 MB, free: 14.25 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003285/0.3072, allocations: 2.911 MB / 447.5 MB, free: 11.34 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00599/0.3132, allocations: 5.162 MB / 452.7 MB, free: 6.156 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0008712/0.3141, allocations: 360 kB / 453 MB, free: 5.805 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009706/0.3151, allocations: 400 kB / 453.4 MB, free: 5.414 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001305/0.3164, allocations: 1.888 MB / 455.3 MB, free: 3.512 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002404/0.3188, allocations: 2.846 MB / 458.2 MB, free: 0.6445 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006685/0.3255, allocations: 7.387 MB / 465.6 MB, free: 9.23 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.147e-06/0.3255, allocations: 4 kB / 465.6 MB, free: 9.227 MB / 382.1 MB Notification: Performance of FrontEnd: time 3.517e-06/0.3256, allocations: 3.938 kB / 465.6 MB, free: 9.223 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0002004/0.3258, allocations: 0 / 465.6 MB, free: 9.223 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 532 * Number of variables: 532 Notification: Performance of Generate backend data structure: time 0.0114/0.3372, allocations: 7.729 MB / 473.3 MB, free: 1.387 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.541e-05/0.3372, allocations: 8.031 kB / 473.3 MB, free: 1.379 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001471/0.3387, allocations: 0.9077 MB / 474.2 MB, free: 472 kB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004051/0.3428, allocations: 3.234 MB / 477.4 MB, free: 13.15 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001137/0.3429, allocations: 156.2 kB / 477.6 MB, free: 13 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002906/0.3432, allocations: 211.9 kB / 477.8 MB, free: 12.79 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003642/0.3469, allocations: 2.085 MB / 479.9 MB, free: 10.64 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.682e-05/0.3469, allocations: 11.98 kB / 479.9 MB, free: 10.62 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001733/0.3471, allocations: 80 kB / 480 MB, free: 10.55 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.619e-05/0.3471, allocations: 52 kB / 480 MB, free: 10.5 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003364/0.3505, allocations: 1.844 MB / 481.9 MB, free: 8.645 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01378/0.3643, allocations: 8.965 MB / 490.8 MB, free: 15.48 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00352/0.3679, allocations: 2.325 MB / 493.2 MB, free: 13.08 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002464/0.3703, allocations: 1.389 MB / 494.5 MB, free: 11.68 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001373/0.3705, allocations: 46.27 kB / 494.6 MB, free: 11.64 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001892/0.3724, allocations: 1.128 MB / 495.7 MB, free: 10.47 MB / 414.1 MB Notification: Performance of pre-optimization done (n=246): time 4.448e-06/0.3724, allocations: 0 / 495.7 MB, free: 10.47 MB / 414.1 MB Notification: Performance of matching and sorting (n=371): time 0.0609/0.4333, allocations: 22.45 MB / 0.506 GB, free: 3.68 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.02869/0.462, allocations: 13.69 MB / 0.5194 GB, free: 5.602 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01714/0.4792, allocations: 15.05 MB / 0.5341 GB, free: 6.551 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0006866/0.4799, allocations: 89.7 kB / 0.5342 GB, free: 6.457 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.003234/0.4832, allocations: 3.769 MB / 0.5379 GB, free: 2.68 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001212/0.4844, allocations: 1.232 MB / 0.5391 GB, free: 1.43 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000903/0.4853, allocations: 0.5196 MB / 0.5396 GB, free: 0.9023 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 8.874e-05/0.4854, allocations: 305.1 kB / 0.5399 GB, free: 0.6016 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.2087/0.6941, allocations: 1.224 MB / 0.5411 GB, free: 120.5 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003053/0.6972, allocations: 1.601 MB / 0.5426 GB, free: 120.3 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00435/0.7016, allocations: 2.974 MB / 0.5455 GB, free: 120 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.165e-06/0.7016, allocations: 3.906 kB / 0.5455 GB, free: 120 MB / 462.1 MB Notification: Performance of matching and sorting (n=435) (initialization): time 0.01058/0.7122, allocations: 5.183 MB / 0.5506 GB, free: 119.1 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.948e-05/0.7122, allocations: 16.11 kB / 0.5506 GB, free: 119.1 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.685e-05/0.7122, allocations: 3 kB / 0.5506 GB, free: 119.1 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005074/0.7173, allocations: 1.409 MB / 0.552 GB, free: 118.8 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002399/0.7197, allocations: 0.5321 MB / 0.5525 GB, free: 118.7 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02234/0.7421, allocations: 24.04 MB / 0.576 GB, free: 96.88 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002902/0.745, allocations: 114.6 kB / 0.5761 GB, free: 96.79 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002156/0.7453, allocations: 114.5 kB / 0.5762 GB, free: 96.68 MB / 462.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 22 * Number of states: 0 () * Number of discrete variables: 9 ($PRE.comparisonWithFEA.nextTimeEvent,$whenCondition1,comparisonWithFEA.nextTimeEventScaled,$PRE.comparisonWithFEA.nextTimeEventScaled,comparisonWithFEA.nextTimeEvent,simpleSolenoid.armature.stopper_xMin.contact,simpleSolenoid.armature.stopper_xMax.contact,advancedSolenoid.armature.stopper_xMin.contact,advancedSolenoid.armature.stopper_xMax.contact) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (313): * Single equations (assignments): 304 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 9 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 7 systems {(1,3,100.0%), (1,3,100.0%), (1,4,100.0%), (1,3,100.0%), (1,4,100.0%), (1,5,100.0%), (1,4,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(2,43), (3,50)} Notification: Performance of prepare postOptimizeDAE: time 0.002454/0.7477, allocations: 2.206 MB / 0.5783 GB, free: 94.63 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006874/0.7484, allocations: 0.8287 MB / 0.5792 GB, free: 94.17 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009094/0.7575, allocations: 5.196 MB / 0.5842 GB, free: 88.93 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.842e-05/0.7576, allocations: 40 kB / 0.5843 GB, free: 88.89 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.295e-05/0.7576, allocations: 4 kB / 0.5843 GB, free: 88.89 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.637e-05/0.7576, allocations: 19.92 kB / 0.5843 GB, free: 88.87 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01678/0.7744, allocations: 11.09 MB / 0.5951 GB, free: 77.72 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.239e-05/0.7744, allocations: 4 kB / 0.5951 GB, free: 77.72 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002139/0.7766, allocations: 447.4 kB / 0.5955 GB, free: 77.28 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004982/0.7816, allocations: 1.346 MB / 0.5969 GB, free: 75.91 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002088/0.7818, allocations: 75.91 kB / 0.5969 GB, free: 75.84 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01979/0.8016, allocations: 21.91 MB / 0.6183 GB, free: 52.68 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.02196/0.8236, allocations: 12.02 MB / 0.6301 GB, free: 40.39 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01154/0.8352, allocations: 6.894 MB / 0.6368 GB, free: 33.39 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001265/0.8365, allocations: 0.7668 MB / 0.6375 GB, free: 32.6 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004634/0.8369, allocations: 71.91 kB / 0.6376 GB, free: 32.53 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001874/0.8388, allocations: 95.95 kB / 0.6377 GB, free: 32.43 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006408/0.8395, allocations: 267.3 kB / 0.638 GB, free: 32.17 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001728/0.8397, allocations: 99.97 kB / 0.6381 GB, free: 32.07 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.009017/0.8487, allocations: 11.22 MB / 0.649 GB, free: 20.88 MB / 462.1 MB Notification: Performance of sort global known variables: time 8.02e-07/0.8487, allocations: 3 kB / 0.649 GB, free: 20.88 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.003382/0.8521, allocations: 1.104 MB / 0.6501 GB, free: 19.77 MB / 462.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 9 (advancedSolenoid.x,advancedSolenoid.coil1.i,advancedSolenoid.armature.stopper_xMin.v_rel,advancedSolenoid.coil2.i,advancedSolenoid.c_par1.v,advancedSolenoid.c_par2.v,$STATESET1.x,simpleSolenoid.x,simpleSolenoid.armature.stopper_xMin.v_rel) * Number of discrete variables: 7 (advancedSolenoid.armature.stopper_xMax.contact,advancedSolenoid.armature.stopper_xMin.contact,simpleSolenoid.armature.stopper_xMax.contact,simpleSolenoid.armature.stopper_xMin.contact,$whenCondition1,comparisonWithFEA.nextTimeEvent,comparisonWithFEA.nextTimeEventScaled) * Number of discrete states: 2 (comparisonWithFEA.nextTimeEventScaled,comparisonWithFEA.nextTimeEvent) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (257): * Single equations (assignments): 246 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 9 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 7 systems {(1,2,100.0%), (1,2,100.0%), (1,4,100.0%), (1,5,100.0%), (1,3,100.0%), (1,2,100.0%), (1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(3,49), (4,42)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001095/0.8532, allocations: 0.5006 MB / 0.6506 GB, free: 19.43 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.006288/0.8595, allocations: 4.751 MB / 0.6552 GB, free: 14.56 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 4.819e-06/0.8595, allocations: 64 / 0.6552 GB, free: 14.56 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003765/0.8633, allocations: 3.26 MB / 0.6584 GB, free: 11.18 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002618/0.8659, allocations: 0.5819 MB / 0.659 GB, free: 10.61 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02086/0.8868, allocations: 17.99 MB / 0.6765 GB, free: 8.613 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003996/0.8908, allocations: 4.054 MB / 0.6805 GB, free: 4.516 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.00177/0.8926, allocations: 313.5 kB / 0.6808 GB, free: 4.203 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000658/0.8933, allocations: 175.3 kB / 0.681 GB, free: 4.031 MB / 478.1 MB Notification: Performance of SimCode: time 8.12e-07/0.8933, allocations: 0 / 0.681 GB, free: 4.031 MB / 478.1 MB Notification: Performance of Templates: time 0.3875/1.281, allocations: 69.22 MB / 0.7486 GB, free: 164.6 MB / 0.5137 GB make -j1 -f Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke.makefile (rm -f Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke.pipe ; mkfifo Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke.pipe >> ../files/Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke.sim & ./Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/FluxTubes/Examples/SolenoidActuator/ComparisonPullInStroke/ComparisonPullInStroke.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches