Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonQuasiStatic.conf.json 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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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) Running command: translateModel(Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonQuasiStatic,tolerance=1e-07,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|comparisonWithFEA.y.1.|comparisonWithFEA.y.2.|comparisonWithFEA.y.3.|advancedFeed_x.v|advancedSolenoid.g_mFeArm.Phi|advancedSolenoid.L_statTot|advancedSolenoid.c_par1.v|advancedSolenoid.c_par2.v|advancedSolenoid.x|advancedSolenoid.armature.flange_a.f|advancedSolenoid.coil1.i|advancedSolenoid.coil1.Phi|advancedSolenoid.coil2.i|advancedSolenoid.coil2.Phi|advancedSolenoid.g_mLeak1.port_p.Phi|advancedSolenoid.g_mLeak2.port_p.Phi|advancedSolenoid.g_mLeak3.port_p.Phi|advancedSolenoid.g_mLeakWork.port_p.Phi|simpleFeed_x.v|simpleSolenoid.armature.flange_a.f|simpleSolenoid.g_mFeArm.Phi|simpleSolenoid.x|simpleSolenoid.coil.i|simpleSolenoid.coil.Phi|simpleSolenoid.coil.L_stat|simpleSolenoid.g_mLeak1.port_p.Phi|simpleSolenoid.g_mLeak2.port_p.Phi|simpleSolenoid.g_mLeakWork.port_p.Phi",fileNamePrefix="Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonQuasiStatic") translateModel(Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonQuasiStatic,tolerance=1e-07,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|comparisonWithFEA.y.1.|comparisonWithFEA.y.2.|comparisonWithFEA.y.3.|advancedFeed_x.v|advancedSolenoid.g_mFeArm.Phi|advancedSolenoid.L_statTot|advancedSolenoid.c_par1.v|advancedSolenoid.c_par2.v|advancedSolenoid.x|advancedSolenoid.armature.flange_a.f|advancedSolenoid.coil1.i|advancedSolenoid.coil1.Phi|advancedSolenoid.coil2.i|advancedSolenoid.coil2.Phi|advancedSolenoid.g_mLeak1.port_p.Phi|advancedSolenoid.g_mLeak2.port_p.Phi|advancedSolenoid.g_mLeak3.port_p.Phi|advancedSolenoid.g_mLeakWork.port_p.Phi|simpleFeed_x.v|simpleSolenoid.armature.flange_a.f|simpleSolenoid.g_mFeArm.Phi|simpleSolenoid.x|simpleSolenoid.coil.i|simpleSolenoid.coil.Phi|simpleSolenoid.coil.L_stat|simpleSolenoid.g_mLeak1.port_p.Phi|simpleSolenoid.g_mLeak2.port_p.Phi|simpleSolenoid.g_mLeakWork.port_p.Phi",fileNamePrefix="Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonQuasiStatic") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001001/0.001001, allocations: 184 kB / 8.138 MB, free: 2.219 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.166/1.166, allocations: 221.4 MB / 229.9 MB, free: 3.098 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008723/0.0008723, allocations: 105.4 kB / 280.8 MB, free: 1.27 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 7.023e-06/7.063e-06, allocations: 0 / 336.5 MB, free: 9.52 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2051/0.2051, allocations: 50.38 MB / 386.9 MB, free: 38 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1031/0.3083, allocations: 94.46 MB / 481.4 MB, free: 8.32 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002268/0.3086, allocations: 87.89 kB / 481.5 MB, free: 8.234 MB / 362.7 MB Notification: Performance of FrontEnd: time 0.2803/0.5888, allocations: 50.61 MB / 0.5196 GB, free: 89.83 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0001062/0.589, allocations: 51.91 kB / 0.5197 GB, free: 89.78 MB / 378.7 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.004717/0.5937, allocations: 2.361 MB / 0.522 GB, free: 87.36 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.744e-05/0.5937, allocations: 8.031 kB / 0.522 GB, free: 87.36 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000431/0.5942, allocations: 292.4 kB / 0.5222 GB, free: 87.07 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002228/0.5964, allocations: 1.336 MB / 0.5235 GB, free: 85.71 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.737e-05/0.5965, allocations: 68 kB / 0.5236 GB, free: 85.65 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002172/0.5967, allocations: 127.9 kB / 0.5237 GB, free: 85.52 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002754/0.5995, allocations: 1.66 MB / 0.5254 GB, free: 83.86 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002616/0.6021, allocations: 1.495 MB / 0.5268 GB, free: 82.31 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.388e-05/0.6022, allocations: 3.906 kB / 0.5268 GB, free: 82.31 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001493/0.6023, allocations: 0.6562 kB / 0.5268 GB, free: 82.31 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.493e-05/0.6024, allocations: 52 kB / 0.5269 GB, free: 82.26 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01096/0.6133, allocations: 7.264 MB / 0.534 GB, free: 74.83 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001802/0.6152, allocations: 1.24 MB / 0.5352 GB, free: 73.59 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001654/0.6168, allocations: 1.159 MB / 0.5363 GB, free: 72.43 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001353/0.617, allocations: 37.89 kB / 0.5363 GB, free: 72.4 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.563e-05/0.617, allocations: 56.56 kB / 0.5364 GB, free: 72.34 MB / 378.7 MB Notification: Performance of pre-optimization done (n=240): time 5.42e-06/0.617, allocations: 3.938 kB / 0.5364 GB, free: 72.33 MB / 378.7 MB Notification: Performance of matching and sorting (n=372): time 0.03317/0.6502, allocations: 12.12 MB / 0.5482 GB, free: 60.17 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.736e-05/0.6503, allocations: 94.23 kB / 0.5483 GB, free: 60.07 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002145/0.6525, allocations: 1.494 MB / 0.5498 GB, free: 58.57 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002885/0.6528, allocations: 29.7 kB / 0.5498 GB, free: 58.53 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002625/0.653, allocations: 0.6609 MB / 0.5505 GB, free: 57.86 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000661/0.6537, allocations: 1.177 MB / 0.5516 GB, free: 56.66 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001761/0.6539, allocations: 0 / 0.5516 GB, free: 56.66 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.000127/0.654, allocations: 433 kB / 0.552 GB, free: 56.23 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001813/0.6558, allocations: 1.151 MB / 0.5532 GB, free: 55.08 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001951/0.6578, allocations: 1.413 MB / 0.5545 GB, free: 53.62 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002084/0.6599, allocations: 1.324 MB / 0.5558 GB, free: 52.29 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.385e-06/0.6599, allocations: 0 / 0.5558 GB, free: 52.29 MB / 378.7 MB Notification: Performance of matching and sorting (n=431) (initialization): time 0.00931/0.6692, allocations: 4.215 MB / 0.5599 GB, free: 48.06 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.958e-05/0.6693, allocations: 4 kB / 0.5599 GB, free: 48.05 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.76e-05/0.6693, allocations: 4 kB / 0.5599 GB, free: 48.05 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005476/0.6748, allocations: 1.367 MB / 0.5613 GB, free: 46.66 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003237/0.678, allocations: 0.5812 MB / 0.5618 GB, free: 46.08 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02159/0.6996, allocations: 18.35 MB / 0.5798 GB, free: 26.93 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00296/0.7026, allocations: 75.98 kB / 0.5798 GB, free: 26.86 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002758/0.7029, allocations: 124.1 kB / 0.58 GB, free: 26.73 MB / 378.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: simpleSolenoid.g_mAirPar.V_m:DUMMY_STATE(unit = "A" ) "Magnetic potential difference of ports" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 15 * Number of states: 0 () * 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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (309): * Single equations (assignments): 302 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 7 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 5 {(1,100.0%) 4,(1,100.0%) 3,(1,100.0%) 3,(1,100.0%) 4,(1,100.0%) 7} * Non-linear torn systems: 2 {3 55,3 42} Notification: Performance of prepare postOptimizeDAE: time 0.0005438/0.7035, allocations: 143.4 kB / 0.5801 GB, free: 26.59 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004243/0.7039, allocations: 260.8 kB / 0.5803 GB, free: 26.33 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008768/0.7127, allocations: 4.099 MB / 0.5843 GB, free: 22.2 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.363e-05/0.7127, allocations: 36 kB / 0.5844 GB, free: 22.16 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.021e-05/0.7127, allocations: 4 kB / 0.5844 GB, free: 22.16 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.631e-05/0.7128, allocations: 19.84 kB / 0.5844 GB, free: 22.14 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01427/0.7271, allocations: 8.663 MB / 0.5929 GB, free: 13.38 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.011e-05/0.7271, allocations: 4.469 kB / 0.5929 GB, free: 13.38 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002737/0.7298, allocations: 0.511 MB / 0.5934 GB, free: 12.87 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004879/0.7347, allocations: 1.263 MB / 0.5946 GB, free: 11.58 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002387/0.735, allocations: 27.97 kB / 0.5946 GB, free: 11.55 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01932/0.7543, allocations: 16.48 MB / 0.6107 GB, free: 10.28 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.02732/0.7817, allocations: 11.73 MB / 0.6222 GB, free: 14.28 MB / 410.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.01313/0.7948, allocations: 6.222 MB / 0.6283 GB, free: 7.824 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001888/0.7968, allocations: 0.6812 MB / 0.6289 GB, free: 7.121 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005144/0.7973, allocations: 7.984 kB / 0.6289 GB, free: 7.113 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002117/0.7994, allocations: 91.92 kB / 0.629 GB, free: 7.023 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003904/0.7998, allocations: 198.4 kB / 0.6292 GB, free: 6.828 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002513/0.8001, allocations: 99.97 kB / 0.6293 GB, free: 6.73 MB / 410.7 MB Notification: Performance of sort global known variables: time 0.001804/0.8019, allocations: 1.14 MB / 0.6304 GB, free: 5.598 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0032/0.8051, allocations: 0.7852 MB / 0.6312 GB, free: 4.812 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * Number of states: 9 ($STATESET1.x,advancedSolenoid.coil1.i,advancedSolenoid.c_par1.v,advancedSolenoid.c_par2.v,advancedSolenoid.g_mLeakWork.Phi,advancedFeed_x.s,advancedFeed_x.v,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 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (261): * Single equations (assignments): 254 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 7 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 5 {(1,100.0%) 3,(1,100.0%) 2,(1,100.0%) 4,(1,100.0%) 4,(1,100.0%) 6} * Non-linear torn systems: 2 {3 43,3 47} Notification: Performance of Backend phase and start with SimCode phase: time 0.0008754/0.806, allocations: 334.9 kB / 0.6315 GB, free: 4.551 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.006844/0.8129, allocations: 3.986 MB / 0.6354 GB, free: 496 kB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 6.322e-06/0.8129, allocations: 4.188 kB / 0.6354 GB, free: 492 kB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00424/0.8172, allocations: 2.644 MB / 0.638 GB, free: 13.77 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001749/0.8189, allocations: 225.8 kB / 0.6382 GB, free: 13.55 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01157/0.8305, allocations: 5.301 MB / 0.6434 GB, free: 8.113 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002496/0.8331, allocations: 1.975 MB / 0.6453 GB, free: 6.098 MB / 426.7 MB Notification: Performance of SimCode: time 9.31e-07/0.8331, allocations: 3.938 kB / 0.6453 GB, free: 6.094 MB / 426.7 MB Notification: Performance of Templates: time 0.2256/1.059, allocations: 63.57 MB / 0.7074 GB, free: 129.1 MB / 426.7 MB make -j1 -f Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonQuasiStatic.makefile (rm -f Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonQuasiStatic.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonQuasiStatic.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonQuasiStatic.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonQuasiStatic.sim & ./Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonQuasiStatic -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonQuasiStatic.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonQuasiStatic_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/FluxTubes/Examples/SolenoidActuator/ComparisonQuasiStatic/ComparisonQuasiStatic.csv","../files/Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonQuasiStatic.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches