Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonQuasiStationary.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonQuasiStationary,tolerance=1e-07,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|advancedFeed_x.v|advancedSolenoid.c_par1.v|advancedSolenoid.c_par2.v|advancedSolenoid.coil1.Phi|advancedSolenoid.coil2.Phi|advancedSolenoid.x|simpleFeed_x.v|simpleSolenoid.coil.Phi|simpleSolenoid.x",fileNamePrefix="Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonQuasiStationary") translateModel(Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonQuasiStationary,tolerance=1e-07,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|advancedFeed_x.v|advancedSolenoid.c_par1.v|advancedSolenoid.c_par2.v|advancedSolenoid.coil1.Phi|advancedSolenoid.coil2.Phi|advancedSolenoid.x|simpleFeed_x.v|simpleSolenoid.coil.Phi|simpleSolenoid.x",fileNamePrefix="Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonQuasiStationary") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001156/0.001156, allocations: 104.5 kB / 18.35 MB, free: 4.645 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001123/0.001123, allocations: 191 kB / 19.29 MB, free: 3.715 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.433/1.433, allocations: 205.1 MB / 225.2 MB, free: 12.25 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.00116/0.00116, allocations: 51.92 kB / 282.1 MB, free: 2.441 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1006/0.1018, allocations: 46.63 MB / 328.7 MB, free: 3.746 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonQuasiStationary): time 0.01354/0.1154, allocations: 10.98 MB / 339.7 MB, free: 8.707 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.006773/0.1222, allocations: 3.218 MB / 342.9 MB, free: 5.473 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002029/0.1242, allocations: 39.88 kB / 343 MB, free: 5.434 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001507/0.1258, allocations: 0.6832 MB / 343.7 MB, free: 4.746 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002652/0.1285, allocations: 0.8881 MB / 344.5 MB, free: 3.852 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001828/0.1303, allocations: 0.9207 MB / 345.5 MB, free: 2.93 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0039/0.1342, allocations: 3.453 MB / 348.9 MB, free: 15.47 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001131/0.1354, allocations: 0.8943 MB / 349.8 MB, free: 14.54 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001676/0.1371, allocations: 1.289 MB / 351.1 MB, free: 13.25 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001545/0.1386, allocations: 1.506 MB / 352.6 MB, free: 11.74 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003703/0.139, allocations: 352 kB / 353 MB, free: 11.39 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000525/0.1395, allocations: 375.9 kB / 353.3 MB, free: 11.03 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000533/0.1401, allocations: 0.7087 MB / 354 MB, free: 10.32 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001296/0.1414, allocations: 1.477 MB / 355.5 MB, free: 8.832 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003438/0.1448, allocations: 4.267 MB / 359.8 MB, free: 4.551 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.25e-06/0.1448, allocations: 0 / 359.8 MB, free: 4.551 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.973e-06/0.1448, allocations: 0 / 359.8 MB, free: 4.551 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.902e-05/0.1449, allocations: 3.938 kB / 359.8 MB, free: 4.547 MB / 302.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 527 * Number of variables: 527 Notification: Performance of Generate backend data structure: time 0.006628/0.1515, allocations: 3.115 MB / 362.9 MB, free: 1.363 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.13e-05/0.1516, allocations: 8.031 kB / 362.9 MB, free: 1.355 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004243/0.152, allocations: 297.4 kB / 363.2 MB, free: 1.062 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002424/0.1545, allocations: 1.407 MB / 364.6 MB, free: 15.6 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001152/0.1546, allocations: 160.5 kB / 364.8 MB, free: 15.44 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002741/0.1549, allocations: 212 kB / 365 MB, free: 15.23 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003301/0.1582, allocations: 1.885 MB / 366.8 MB, free: 13.29 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.798e-05/0.1582, allocations: 7.984 kB / 366.9 MB, free: 13.29 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001648/0.1584, allocations: 84 kB / 366.9 MB, free: 13.2 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.501e-05/0.1585, allocations: 56 kB / 367 MB, free: 13.15 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003625/0.1621, allocations: 1.902 MB / 368.9 MB, free: 11.23 MB / 318.1 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01239/0.1745, allocations: 7.374 MB / 376.3 MB, free: 3.566 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003501/0.178, allocations: 2.278 MB / 378.5 MB, free: 1.25 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.1679/0.3459, allocations: 1.367 MB / 379.9 MB, free: 50.84 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002749/0.3462, allocations: 40.33 kB / 379.9 MB, free: 50.84 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.148e-05/0.3463, allocations: 56.03 kB / 380 MB, free: 50.8 MB / 318.1 MB Notification: Performance of pre-optimization done (n=234): time 4.449e-06/0.3463, allocations: 0 / 380 MB, free: 50.8 MB / 318.1 MB Notification: Performance of matching and sorting (n=351): time 0.05716/0.4035, allocations: 17.58 MB / 397.6 MB, free: 45.14 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.085e-05/0.4035, allocations: 92.19 kB / 397.7 MB, free: 45.08 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002445/0.406, allocations: 1.842 MB / 399.5 MB, free: 44.15 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002898/0.4063, allocations: 81.36 kB / 399.6 MB, free: 44.07 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004755/0.4068, allocations: 0.9786 MB / 400.6 MB, free: 43.21 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000606/0.4074, allocations: 1.152 MB / 401.7 MB, free: 42.13 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007025/0.4081, allocations: 0.4916 MB / 402.2 MB, free: 41.63 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 4.237e-05/0.4082, allocations: 301.1 kB / 402.5 MB, free: 41.33 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001924/0.4101, allocations: 1.221 MB / 403.7 MB, free: 40.11 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002049/0.4121, allocations: 1.525 MB / 405.3 MB, free: 38.52 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004036/0.4162, allocations: 2.88 MB / 408.1 MB, free: 35.57 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.693e-06/0.4162, allocations: 3.938 kB / 408.1 MB, free: 35.56 MB / 318.1 MB Notification: Performance of matching and sorting (n=412) (initialization): time 0.008456/0.4247, allocations: 4.449 MB / 412.6 MB, free: 31.07 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.248e-05/0.4247, allocations: 12 kB / 412.6 MB, free: 31.06 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.435e-05/0.4247, allocations: 4 kB / 412.6 MB, free: 31.05 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004619/0.4294, allocations: 1.319 MB / 413.9 MB, free: 29.71 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002334/0.4317, allocations: 0.5305 MB / 414.5 MB, free: 29.18 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02039/0.4521, allocations: 20.59 MB / 435 MB, free: 7.656 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002605/0.4548, allocations: 99.95 kB / 435.1 MB, free: 7.559 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002561/0.455, allocations: 108 kB / 435.2 MB, free: 7.453 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 19 * Number of states: 0 () * Number of discrete variables: 4 (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 (298): * Single equations (assignments): 291 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 7 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 5 systems {(1,3,100.0%), (1,3,100.0%), (1,3,100.0%), (1,4,100.0%), (1,5,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(3,50), (2,43)} Notification: Performance of prepare postOptimizeDAE: time 0.001029/0.4561, allocations: 0.5755 MB / 435.8 MB, free: 6.867 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003858/0.4565, allocations: 248.9 kB / 436.1 MB, free: 6.621 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008593/0.4651, allocations: 4.399 MB / 440.5 MB, free: 2.16 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.038e-05/0.4651, allocations: 32 kB / 440.5 MB, free: 2.129 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.025e-05/0.4651, allocations: 8 kB / 440.5 MB, free: 2.121 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.845e-05/0.4652, allocations: 23.86 kB / 440.5 MB, free: 2.098 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0153/0.4805, allocations: 8.373 MB / 448.9 MB, free: 9.645 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.42e-05/0.4805, allocations: 4 kB / 448.9 MB, free: 9.641 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002384/0.4829, allocations: 459.6 kB / 449.4 MB, free: 9.191 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005101/0.488, allocations: 1.261 MB / 450.6 MB, free: 7.91 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002622/0.4883, allocations: 67.98 kB / 450.7 MB, free: 7.844 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02334/0.5117, allocations: 19.19 MB / 469.9 MB, free: 3.711 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.988e-06/0.5117, allocations: 4 kB / 469.9 MB, free: 3.707 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01274/0.5244, allocations: 6.101 MB / 476 MB, free: 13.48 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001621/0.5261, allocations: 0.6073 MB / 476.6 MB, free: 12.86 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003758/0.5265, allocations: 64 kB / 476.6 MB, free: 12.79 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001694/0.5282, allocations: 111.9 kB / 476.8 MB, free: 12.68 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006051/0.5288, allocations: 262.7 kB / 477 MB, free: 12.43 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001921/0.529, allocations: 91.97 kB / 477.1 MB, free: 12.34 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.001606/0.5306, allocations: 1.293 MB / 478.4 MB, free: 11.05 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.5306, allocations: 0 / 478.4 MB, free: 11.05 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.002678/0.5333, allocations: 0.8698 MB / 479.3 MB, free: 10.19 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * Number of states: 9 (advancedSolenoid.coil1.i,advancedSolenoid.coil2.i,advancedSolenoid.c_par1.v,advancedSolenoid.c_par2.v,advancedFeed_x.s,advancedFeed_x.v,simpleSolenoid.coil.i,simpleFeed_x.s,simpleFeed_x.v) * Number of discrete variables: 4 (advancedSolenoid.armature.stopper_xMax.contact,advancedSolenoid.armature.stopper_xMin.contact,simpleSolenoid.armature.stopper_xMax.contact,simpleSolenoid.armature.stopper_xMin.contact) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (243): * Single equations (assignments): 236 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 7 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 5 systems {(1,3,100.0%), (1,2,100.0%), (1,2,100.0%), (1,4,100.0%), (1,5,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(3,41), (3,49)} Notification: Performance of Backend phase and start with SimCode phase: time 0.00107/0.5344, allocations: 453.9 kB / 479.7 MB, free: 9.758 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.007619/0.542, allocations: 4.448 MB / 484.2 MB, free: 5.195 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 5.209e-06/0.542, allocations: 0 / 484.2 MB, free: 5.195 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004633/0.5467, allocations: 2.984 MB / 487.1 MB, free: 2.125 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001959/0.5487, allocations: 373.7 kB / 487.5 MB, free: 1.758 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009124/0.5578, allocations: 5.601 MB / 493.1 MB, free: 12.1 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001402/0.5592, allocations: 1.702 MB / 494.8 MB, free: 10.36 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.001566/0.5608, allocations: 288.1 kB / 495.1 MB, free: 10.07 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000604/0.5614, allocations: 159.4 kB / 495.2 MB, free: 9.914 MB / 382.1 MB Notification: Performance of SimCode: time 7.01e-07/0.5614, allocations: 0 / 495.2 MB, free: 9.914 MB / 382.1 MB Notification: Performance of Templates: time 0.2306/0.792, allocations: 52.24 MB / 0.5346 GB, free: 129 MB / 414.1 MB make -j1 -f Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonQuasiStationary.makefile (rm -f Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonQuasiStationary.pipe ; mkfifo Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonQuasiStationary.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonQuasiStationary.pipe >> ../files/Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonQuasiStationary.sim & ./Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonQuasiStationary -abortSlowSimulation -alarm=480 -s cvode -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonQuasiStationary.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonQuasiStationary_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Magnetic/FluxTubes/Examples/SolenoidActuator/ComparisonQuasiStationary/ComparisonQuasiStationary.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonQuasiStationary.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches