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.001148/0.001148, allocations: 113.4 kB / 17.73 MB, free: 5.359 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.001165/0.001165, allocations: 188.1 kB / 18.66 MB, free: 4.438 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.369/1.369, allocations: 205.1 MB / 224.5 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.001175/0.001176, allocations: 47.92 kB / 328.5 MB, free: 3.324 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09555/0.09674, allocations: 46.62 MB / 375.1 MB, free: 4.594 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonQuasiStationary): time 0.2031/0.2999, allocations: 10.98 MB / 386.1 MB, free: 7.02 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.006147/0.3061, allocations: 3.22 MB / 389.3 MB, free: 5.23 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001427/0.3076, allocations: 39.28 kB / 389.4 MB, free: 5.223 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00142/0.3091, allocations: 0.6823 MB / 390.1 MB, free: 4.969 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002531/0.3116, allocations: 0.9109 MB / 391 MB, free: 4.406 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00195/0.3136, allocations: 0.9224 MB / 391.9 MB, free: 3.812 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.003841/0.3175, allocations: 3.461 MB / 395.4 MB, free: 2.031 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001209/0.3187, allocations: 0.897 MB / 396.2 MB, free: 1.586 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002173/0.3209, allocations: 1.293 MB / 397.5 MB, free: 0.9414 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001998/0.3229, allocations: 1.51 MB / 399.1 MB, free: 212 kB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005841/0.3235, allocations: 357.6 kB / 399.4 MB, free: 204 kB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007269/0.3242, allocations: 378.7 kB / 399.8 MB, free: 196 kB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006299/0.3248, allocations: 0.7088 MB / 400.5 MB, free: 15.7 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001668/0.3265, allocations: 1.474 MB / 402 MB, free: 14.71 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004496/0.331, allocations: 4.262 MB / 406.2 MB, free: 11.86 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.468e-06/0.331, allocations: 2.156 kB / 406.2 MB, free: 11.86 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.753e-06/0.331, allocations: 0 / 406.2 MB, free: 11.86 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.462e-05/0.3311, allocations: 0 / 406.2 MB, free: 11.86 MB / 334.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.007529/0.3387, allocations: 3.125 MB / 409.3 MB, free: 9.676 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.396e-05/0.3387, allocations: 9.594 kB / 409.4 MB, free: 9.676 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005306/0.3393, allocations: 291.6 kB / 409.6 MB, free: 9.527 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002584/0.3418, allocations: 1.408 MB / 411 MB, free: 8.406 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001687/0.342, allocations: 156.8 kB / 411.2 MB, free: 8.332 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003293/0.3424, allocations: 210.2 kB / 411.4 MB, free: 8.258 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003899/0.3463, allocations: 1.893 MB / 413.3 MB, free: 7.133 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.433e-05/0.3463, allocations: 9.719 kB / 413.3 MB, free: 7.125 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001871/0.3465, allocations: 84.78 kB / 413.4 MB, free: 7.059 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.997e-05/0.3466, allocations: 49.84 kB / 413.4 MB, free: 7.059 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00386/0.3504, allocations: 1.907 MB / 415.3 MB, free: 6.109 MB / 334.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.01218/0.3626, allocations: 7.377 MB / 422.7 MB, free: 15.59 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003534/0.3662, allocations: 2.285 MB / 425 MB, free: 13.25 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002741/0.369, allocations: 1.417 MB / 426.4 MB, free: 11.85 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001253/0.3691, allocations: 37.97 kB / 426.5 MB, free: 11.81 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.952e-05/0.3691, allocations: 56.56 kB / 426.5 MB, free: 11.75 MB / 350.1 MB Notification: Performance of pre-optimization done (n=234): time 3.827e-06/0.3691, allocations: 0 / 426.5 MB, free: 11.75 MB / 350.1 MB Notification: Performance of matching and sorting (n=351): time 0.06263/0.4318, allocations: 17.57 MB / 444.1 MB, free: 9.969 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.274e-05/0.4319, allocations: 90.11 kB / 444.2 MB, free: 9.867 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002668/0.4346, allocations: 1.84 MB / 446 MB, free: 8.023 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002632/0.4349, allocations: 85.7 kB / 446.1 MB, free: 7.934 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007439/0.4356, allocations: 0.9772 MB / 447.1 MB, free: 6.945 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009658/0.4366, allocations: 1.159 MB / 448.2 MB, free: 5.77 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009902/0.4376, allocations: 495.5 kB / 448.7 MB, free: 5.277 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001234/0.4377, allocations: 309.1 kB / 449 MB, free: 4.973 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002593/0.4403, allocations: 1.217 MB / 450.2 MB, free: 3.754 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002853/0.4432, allocations: 1.529 MB / 451.8 MB, free: 2.164 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005737/0.4489, allocations: 2.874 MB / 454.6 MB, free: 15.21 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.068e-05/0.449, allocations: 4 kB / 454.6 MB, free: 15.2 MB / 382.1 MB Notification: Performance of matching and sorting (n=412) (initialization): time 0.01088/0.4599, allocations: 4.451 MB / 459.1 MB, free: 10.7 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.858e-05/0.4599, allocations: 8 kB / 459.1 MB, free: 10.69 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.773e-05/0.4599, allocations: 4 kB / 459.1 MB, free: 10.69 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005417/0.4654, allocations: 1.33 MB / 460.4 MB, free: 9.34 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002746/0.4681, allocations: 0.5227 MB / 461 MB, free: 8.816 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02678/0.4949, allocations: 20.58 MB / 481.5 MB, free: 3.238 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002699/0.4976, allocations: 115.9 kB / 481.7 MB, free: 3.125 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002435/0.4979, allocations: 107.9 kB / 481.8 MB, free: 3.02 MB / 398.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.001281/0.4992, allocations: 0.5796 MB / 482.3 MB, free: 2.43 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000488/0.4997, allocations: 252.9 kB / 482.6 MB, free: 2.18 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01033/0.51, allocations: 4.396 MB / 487 MB, free: 13.71 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.931e-05/0.5101, allocations: 32 kB / 487 MB, free: 13.68 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.368e-05/0.5101, allocations: 7.938 kB / 487 MB, free: 13.68 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.055e-05/0.5102, allocations: 15.94 kB / 487 MB, free: 13.66 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01664/0.5268, allocations: 8.378 MB / 495.4 MB, free: 5.117 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.449e-05/0.5269, allocations: 4 kB / 495.4 MB, free: 5.113 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002453/0.5293, allocations: 459.6 kB / 495.9 MB, free: 4.664 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005284/0.5346, allocations: 1.255 MB / 497.1 MB, free: 3.387 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003259/0.535, allocations: 67.98 kB / 497.2 MB, free: 3.32 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02504/0.56, allocations: 19.18 MB / 0.5043 GB, free: 15.16 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.67e-06/0.5601, allocations: 7.969 kB / 0.5043 GB, free: 15.15 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01392/0.574, allocations: 6.101 MB / 0.5102 GB, free: 8.922 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001444/0.5755, allocations: 0.6109 MB / 0.5108 GB, free: 8.289 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000386/0.5759, allocations: 63.98 kB / 0.5109 GB, free: 8.227 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001854/0.5777, allocations: 111.9 kB / 0.511 GB, free: 8.117 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008214/0.5786, allocations: 254.7 kB / 0.5112 GB, free: 7.867 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002061/0.5788, allocations: 91.98 kB / 0.5113 GB, free: 7.777 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.001879/0.5807, allocations: 1.294 MB / 0.5126 GB, free: 6.492 MB / 446.1 MB Notification: Performance of sort global known variables: time 2e-07/0.5807, allocations: 3.938 kB / 0.5126 GB, free: 6.488 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.002961/0.5836, allocations: 0.8711 MB / 0.5134 GB, free: 5.617 MB / 446.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.001079/0.5847, allocations: 444.7 kB / 0.5139 GB, free: 5.172 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.008041/0.5928, allocations: 4.45 MB / 0.5182 GB, free: 0.6133 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 5.41e-06/0.5928, allocations: 256 / 0.5182 GB, free: 0.6133 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004848/0.5977, allocations: 2.98 MB / 0.5211 GB, free: 13.54 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002273/0.6, allocations: 385.5 kB / 0.5215 GB, free: 13.16 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01078/0.6108, allocations: 5.6 MB / 0.527 GB, free: 7.484 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001476/0.6123, allocations: 1.702 MB / 0.5286 GB, free: 5.742 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.001804/0.6141, allocations: 288.1 kB / 0.5289 GB, free: 5.457 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006563/0.6148, allocations: 163.4 kB / 0.5291 GB, free: 5.297 MB / 462.1 MB Notification: Performance of SimCode: time 1.322e-06/0.6148, allocations: 3.938 kB / 0.5291 GB, free: 5.293 MB / 462.1 MB Notification: Performance of Templates: time 0.2954/0.9102, allocations: 53.21 MB / 0.581 GB, free: 140.8 MB / 478.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 -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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Magnetic/FluxTubes/Examples/SolenoidActuator/ComparisonQuasiStationary/ComparisonQuasiStationary.csv","/var/lib/jenkins/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