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/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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") [: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 3.2.3+maint.om/package.mo): time 0.001314/0.001314, allocations: 178.7 kB / 8.476 MB, free: 1.871 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.24/1.24, allocations: 205.2 MB / 214.1 MB, free: 5.25 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008596/0.0008598, allocations: 113.8 kB / 262.1 MB, free: 5.273 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 6.823e-06/6.853e-06, allocations: 4 kB / 315 MB, free: 41.53 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07056/0.07058, allocations: 47.57 MB / 362.5 MB, free: 9.988 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2266/0.2972, allocations: 91.26 MB / 453.8 MB, free: 8.441 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002566/0.2976, allocations: 85.25 kB / 453.9 MB, free: 8.426 MB / 314.7 MB Notification: Performance of FrontEnd: time 0.1275/0.4251, allocations: 49.3 MB / 0.4914 GB, free: 8.043 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.0001095/0.4252, allocations: 55.94 kB / 0.4915 GB, free: 7.988 MB / 346.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.004869/0.4301, allocations: 2.354 MB / 0.4937 GB, free: 5.574 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.089e-05/0.4301, allocations: 12.03 kB / 0.4938 GB, free: 5.562 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004585/0.4306, allocations: 288.4 kB / 0.494 GB, free: 5.277 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002499/0.4331, allocations: 1.345 MB / 0.4953 GB, free: 3.879 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.891e-05/0.4332, allocations: 68 kB / 0.4954 GB, free: 3.812 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002468/0.4334, allocations: 123.9 kB / 0.4955 GB, free: 3.691 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.003084/0.4365, allocations: 1.664 MB / 0.4972 GB, free: 2.02 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002791/0.4393, allocations: 1.483 MB / 0.4986 GB, free: 500 kB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.204e-05/0.4394, allocations: 8 kB / 0.4986 GB, free: 492 kB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001493/0.4395, allocations: 0 / 0.4986 GB, free: 492 kB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.764e-05/0.4396, allocations: 48 kB / 0.4987 GB, free: 444 kB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01172/0.4513, allocations: 7.308 MB / 0.5058 GB, free: 8.867 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002019/0.4533, allocations: 1.221 MB / 0.507 GB, free: 7.645 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001877/0.4552, allocations: 1.151 MB / 0.5081 GB, free: 6.492 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001355/0.4554, allocations: 41.95 kB / 0.5082 GB, free: 6.449 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.638e-05/0.4554, allocations: 60.56 kB / 0.5082 GB, free: 6.383 MB / 362.7 MB Notification: Performance of pre-optimization done (n=240): time 3.517e-06/0.4554, allocations: 0 / 0.5082 GB, free: 6.383 MB / 362.7 MB Notification: Performance of matching and sorting (n=372): time 0.03695/0.4924, allocations: 12.12 MB / 0.52 GB, free: 10.15 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.861e-05/0.4925, allocations: 86.33 kB / 0.5201 GB, free: 10.05 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002402/0.4949, allocations: 1.502 MB / 0.5216 GB, free: 8.547 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002597/0.4952, allocations: 29.7 kB / 0.5216 GB, free: 8.512 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003865/0.4955, allocations: 0.6608 MB / 0.5223 GB, free: 7.836 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000888/0.4964, allocations: 1.173 MB / 0.5234 GB, free: 6.645 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001742/0.4966, allocations: 0 / 0.5234 GB, free: 6.645 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001942/0.4968, allocations: 433.1 kB / 0.5238 GB, free: 6.215 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00203/0.4989, allocations: 1.147 MB / 0.5249 GB, free: 5.066 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002241/0.5011, allocations: 1.42 MB / 0.5263 GB, free: 3.602 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00235/0.5035, allocations: 1.32 MB / 0.5276 GB, free: 2.273 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.414e-06/0.5035, allocations: 4 kB / 0.5276 GB, free: 2.27 MB / 378.7 MB Notification: Performance of matching and sorting (n=431) (initialization): time 0.0101/0.5136, allocations: 4.208 MB / 0.5317 GB, free: 14.02 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.985e-05/0.5136, allocations: 9.719 kB / 0.5317 GB, free: 14.01 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.844e-05/0.5137, allocations: 7.938 kB / 0.5318 GB, free: 14 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006034/0.5197, allocations: 1.355 MB / 0.5331 GB, free: 12.62 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003442/0.5232, allocations: 0.5812 MB / 0.5336 GB, free: 12.04 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02477/0.548, allocations: 18.36 MB / 0.5516 GB, free: 8.84 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002873/0.5509, allocations: 79.98 kB / 0.5516 GB, free: 8.762 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003215/0.5512, allocations: 116 kB / 0.5518 GB, free: 8.648 MB / 410.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.0005389/0.5518, allocations: 144.3 kB / 0.5519 GB, free: 8.5 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004435/0.5522, allocations: 256.8 kB / 0.5521 GB, free: 8.246 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009649/0.5619, allocations: 4.099 MB / 0.5561 GB, free: 4.09 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.026e-05/0.5619, allocations: 36 kB / 0.5562 GB, free: 4.055 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.38e-05/0.5619, allocations: 4 kB / 0.5562 GB, free: 4.051 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.832e-05/0.562, allocations: 23.92 kB / 0.5562 GB, free: 4.027 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01674/0.5787, allocations: 8.651 MB / 0.5647 GB, free: 11.18 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.118e-05/0.5788, allocations: 4 kB / 0.5647 GB, free: 11.17 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002749/0.5815, allocations: 0.523 MB / 0.5652 GB, free: 10.65 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005181/0.5867, allocations: 1.255 MB / 0.5664 GB, free: 9.371 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000229/0.587, allocations: 23.97 kB / 0.5664 GB, free: 9.348 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1295/0.7164, allocations: 16.48 MB / 0.5825 GB, free: 157 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.02468/0.7411, allocations: 11.71 MB / 0.5939 GB, free: 154.3 MB / 426.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.01109/0.7523, allocations: 6.209 MB / 0.6 GB, free: 153.4 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001248/0.7535, allocations: 0.6813 MB / 0.6007 GB, free: 153.1 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004153/0.754, allocations: 9.859 kB / 0.6007 GB, free: 153.1 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002003/0.756, allocations: 97.41 kB / 0.6008 GB, free: 153.1 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003246/0.7563, allocations: 194.4 kB / 0.601 GB, free: 153.1 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.00021/0.7565, allocations: 102.8 kB / 0.6011 GB, free: 153.1 MB / 426.7 MB Notification: Performance of sort global known variables: time 0.001365/0.7579, allocations: 1.135 MB / 0.6022 GB, free: 153 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.002506/0.7604, allocations: 0.7968 MB / 0.6029 GB, free: 153 MB / 426.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.0007531/0.7612, allocations: 313.6 kB / 0.6032 GB, free: 152.9 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.005803/0.767, allocations: 3.998 MB / 0.6072 GB, free: 151 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 7.413e-06/0.767, allocations: 0 / 0.6072 GB, free: 151 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003587/0.7706, allocations: 2.637 MB / 0.6097 GB, free: 149.6 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001538/0.7722, allocations: 241.8 kB / 0.61 GB, free: 149.5 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01101/0.7832, allocations: 5.295 MB / 0.6151 GB, free: 147.3 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002352/0.7856, allocations: 1.977 MB / 0.6171 GB, free: 146.5 MB / 426.7 MB Notification: Performance of SimCode: time 7.32e-07/0.7856, allocations: 0 / 0.6171 GB, free: 146.5 MB / 426.7 MB Notification: Performance of Templates: time 0.08221/0.8678, allocations: 63.66 MB / 0.6792 GB, free: 99.56 MB / 426.7 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","../files/Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonQuasiStationary.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches