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.001475/0.001475, allocations: 106 kB / 18.36 MB, free: 4.582 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.001754/0.001754, allocations: 188.2 kB / 19.3 MB, free: 3.656 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.477/1.477, allocations: 205.1 MB / 225.2 MB, free: 12.26 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.001237/0.001237, allocations: 55.92 kB / 329.2 MB, free: 3.328 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09523/0.09648, allocations: 46.61 MB / 375.8 MB, free: 4.605 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonQuasiStationary): time 0.2109/0.3074, allocations: 10.98 MB / 386.7 MB, free: 7.566 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.007772/0.3152, allocations: 3.214 MB / 390 MB, free: 5.488 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003255/0.3185, allocations: 38.59 kB / 390 MB, free: 5.48 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002289/0.3209, allocations: 0.6835 MB / 390.7 MB, free: 5.227 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004612/0.3255, allocations: 0.89 MB / 391.6 MB, free: 4.676 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003365/0.3289, allocations: 0.9215 MB / 392.5 MB, free: 4.082 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.006868/0.3358, allocations: 3.461 MB / 396 MB, free: 2.301 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001813/0.3377, allocations: 0.8914 MB / 396.8 MB, free: 1.859 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002984/0.3407, allocations: 1.285 MB / 398.1 MB, free: 1.219 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0032/0.3439, allocations: 1.513 MB / 399.6 MB, free: 492 kB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0008839/0.3448, allocations: 354.6 kB / 400 MB, free: 488 kB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00118/0.346, allocations: 373.2 kB / 400.4 MB, free: 484 kB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006636/0.3467, allocations: 0.7095 MB / 401.1 MB, free: 15.97 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002083/0.3488, allocations: 1.482 MB / 402.5 MB, free: 14.98 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004657/0.3534, allocations: 4.261 MB / 406.8 MB, free: 12.1 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.743e-06/0.3535, allocations: 0 / 406.8 MB, free: 12.1 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.375e-06/0.3535, allocations: 0 / 406.8 MB, free: 12.1 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.0001104/0.3536, allocations: 1.25 kB / 406.8 MB, free: 12.1 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.008345/0.3619, allocations: 3.121 MB / 409.9 MB, free: 9.926 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.961e-05/0.362, allocations: 12.69 kB / 409.9 MB, free: 9.922 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006479/0.3627, allocations: 293.7 kB / 410.2 MB, free: 9.773 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002929/0.3656, allocations: 1.415 MB / 411.6 MB, free: 8.645 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001588/0.3658, allocations: 155.9 kB / 411.8 MB, free: 8.57 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003289/0.3661, allocations: 207.2 kB / 412 MB, free: 8.5 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004148/0.3703, allocations: 1.888 MB / 413.9 MB, free: 7.379 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.375e-05/0.3703, allocations: 9.969 kB / 413.9 MB, free: 7.371 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001851/0.3705, allocations: 85.75 kB / 414 MB, free: 7.305 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.076e-05/0.3706, allocations: 53.47 kB / 414 MB, free: 7.301 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003984/0.3746, allocations: 1.905 MB / 415.9 MB, free: 6.352 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.01296/0.3876, allocations: 7.375 MB / 423.3 MB, free: 15.79 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003601/0.3912, allocations: 2.289 MB / 425.6 MB, free: 13.46 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002562/0.3938, allocations: 1.374 MB / 427 MB, free: 12.09 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001144/0.3939, allocations: 37.97 kB / 427 MB, free: 12.05 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.296e-05/0.3939, allocations: 56.56 kB / 427.1 MB, free: 11.99 MB / 350.1 MB Notification: Performance of pre-optimization done (n=234): time 4.399e-06/0.394, allocations: 4 kB / 427.1 MB, free: 11.99 MB / 350.1 MB Notification: Performance of matching and sorting (n=351): time 0.05985/0.4538, allocations: 17.57 MB / 444.6 MB, free: 10.21 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.305e-05/0.4539, allocations: 90.17 kB / 444.7 MB, free: 10.11 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00274/0.4567, allocations: 1.84 MB / 446.6 MB, free: 8.266 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0006291/0.4573, allocations: 81.7 kB / 446.6 MB, free: 8.18 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000793/0.4581, allocations: 0.9733 MB / 447.6 MB, free: 7.195 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001147/0.4593, allocations: 1.167 MB / 448.8 MB, free: 6.012 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008612/0.4601, allocations: 0.4916 MB / 449.3 MB, free: 5.512 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.000113/0.4603, allocations: 301.1 kB / 449.6 MB, free: 5.215 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002527/0.4628, allocations: 1.217 MB / 450.8 MB, free: 3.996 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002659/0.4655, allocations: 1.529 MB / 452.3 MB, free: 2.406 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005334/0.4708, allocations: 2.878 MB / 455.2 MB, free: 15.45 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.525e-06/0.4708, allocations: 0 / 455.2 MB, free: 15.45 MB / 382.1 MB Notification: Performance of matching and sorting (n=412) (initialization): time 0.01035/0.4812, allocations: 4.447 MB / 459.6 MB, free: 10.95 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.679e-05/0.4813, allocations: 8 kB / 459.7 MB, free: 10.94 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.706e-05/0.4813, allocations: 4 kB / 459.7 MB, free: 10.94 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005377/0.4867, allocations: 1.338 MB / 461 MB, free: 9.578 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002891/0.4896, allocations: 0.5188 MB / 461.5 MB, free: 9.059 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02746/0.5171, allocations: 20.58 MB / 482.1 MB, free: 3.48 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00273/0.5199, allocations: 112 kB / 482.2 MB, free: 3.371 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003012/0.5202, allocations: 107.9 kB / 482.3 MB, free: 3.266 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.0013/0.5215, allocations: 0.5832 MB / 482.9 MB, free: 2.672 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005198/0.522, allocations: 248.9 kB / 483.1 MB, free: 2.426 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01006/0.5321, allocations: 4.392 MB / 487.5 MB, free: 13.96 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.715e-05/0.5322, allocations: 32.14 kB / 487.6 MB, free: 13.93 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.377e-05/0.5322, allocations: 7.938 kB / 487.6 MB, free: 13.93 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.808e-05/0.5322, allocations: 19.92 kB / 487.6 MB, free: 13.91 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01674/0.549, allocations: 8.374 MB / 496 MB, free: 5.367 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.719e-05/0.549, allocations: 4.281 kB / 496 MB, free: 5.363 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002471/0.5515, allocations: 467.3 kB / 496.4 MB, free: 4.906 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005311/0.5568, allocations: 1.255 MB / 497.7 MB, free: 3.629 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003966/0.5573, allocations: 67.98 kB / 497.7 MB, free: 3.562 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02375/0.581, allocations: 19.19 MB / 0.5048 GB, free: 15.39 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.177e-06/0.5811, allocations: 4 kB / 0.5048 GB, free: 15.39 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01307/0.5942, allocations: 6.097 MB / 0.5108 GB, free: 9.164 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001492/0.5957, allocations: 0.6148 MB / 0.5114 GB, free: 8.527 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000447/0.5961, allocations: 67.94 kB / 0.5114 GB, free: 8.461 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001757/0.5979, allocations: 107.9 kB / 0.5115 GB, free: 8.355 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00062/0.5985, allocations: 258.7 kB / 0.5118 GB, free: 8.102 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001802/0.5987, allocations: 95.98 kB / 0.5119 GB, free: 8.008 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.001827/0.6006, allocations: 1.29 MB / 0.5131 GB, free: 6.727 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.6006, allocations: 0 / 0.5131 GB, free: 6.727 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.003109/0.6037, allocations: 0.8672 MB / 0.514 GB, free: 5.859 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.001121/0.6048, allocations: 440.6 kB / 0.5144 GB, free: 5.418 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.007867/0.6127, allocations: 4.458 MB / 0.5188 GB, free: 0.8516 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 7.334e-06/0.6127, allocations: 3.938 kB / 0.5188 GB, free: 0.8477 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004876/0.6176, allocations: 2.98 MB / 0.5217 GB, free: 13.77 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002193/0.6199, allocations: 381.5 kB / 0.522 GB, free: 13.39 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01035/0.6302, allocations: 5.664 MB / 0.5276 GB, free: 7.652 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001481/0.6318, allocations: 1.706 MB / 0.5292 GB, free: 5.906 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001174/0.6329, allocations: 183.4 kB / 0.5294 GB, free: 5.727 MB / 462.1 MB Notification: Performance of SimCode: time 9.52e-07/0.6329, allocations: 0 / 0.5294 GB, free: 5.727 MB / 462.1 MB Notification: Performance of Templates: time 0.3051/0.938, allocations: 118.6 MB / 0.6452 GB, free: 72.97 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/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