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: "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonQuasiStationary,fileNamePrefix="Modelica_3_2_3_Modelica_Magnetic_FluxTubes_Examples_SolenoidActuator_ComparisonQuasiStationary",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonQuasiStationary,fileNamePrefix="Modelica_3_2_3_Modelica_Magnetic_FluxTubes_Examples_SolenoidActuator_ComparisonQuasiStationary",fmuType="me",version="2.0",platforms={"static"}) [: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.00158/0.00158, allocations: 176.1 kB / 8.476 MB, free: 1.883 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.066/1.066, allocations: 205.2 MB / 214.1 MB, free: 5.094 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.0008564/0.0008564, allocations: 91.27 kB / 262.1 MB, free: 5.145 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1511/0.152, allocations: 52.97 MB / 315.1 MB, free: 41.41 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06637/0.2184, allocations: 47.57 MB / 362.6 MB, free: 9.879 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2048/0.4232, allocations: 91.26 MB / 453.9 MB, free: 8.57 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002277/0.4235, allocations: 82.36 kB / 454 MB, free: 8.559 MB / 314.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.1302/0.5537, allocations: 51.72 MB / 0.4938 GB, free: 5.449 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.461e-05/0.5537, allocations: 8 kB / 0.4939 GB, free: 5.441 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007525/0.5545, allocations: 292.4 kB / 0.4941 GB, free: 5.152 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003034/0.5575, allocations: 1.341 MB / 0.4954 GB, free: 3.758 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.292e-05/0.5576, allocations: 68 kB / 0.4955 GB, free: 3.691 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000376/0.558, allocations: 123.9 kB / 0.4956 GB, free: 3.57 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.003315/0.5614, allocations: 1.656 MB / 0.4972 GB, free: 1.906 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002885/0.5642, allocations: 1.491 MB / 0.4987 GB, free: 376 kB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.294e-05/0.5643, allocations: 8 kB / 0.4987 GB, free: 368 kB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000148/0.5645, allocations: 3.938 kB / 0.4987 GB, free: 364 kB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.993e-05/0.5645, allocations: 48 kB / 0.4988 GB, free: 316 kB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01226/0.5768, allocations: 7.3 MB / 0.5059 GB, free: 8.754 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002071/0.5789, allocations: 1.221 MB / 0.5071 GB, free: 7.531 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001877/0.5808, allocations: 1.151 MB / 0.5082 GB, free: 6.379 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001401/0.5809, allocations: 41.94 kB / 0.5082 GB, free: 6.336 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.631e-05/0.581, allocations: 64.56 kB / 0.5083 GB, free: 6.266 MB / 362.7 MB Notification: Performance of pre-optimization done (n=240): time 3.907e-06/0.581, allocations: 0 / 0.5083 GB, free: 6.266 MB / 362.7 MB Notification: Performance of matching and sorting (n=372): time 0.03518/0.6161, allocations: 12.12 MB / 0.5201 GB, free: 10.03 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.651e-05/0.6162, allocations: 86.33 kB / 0.5202 GB, free: 9.934 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002245/0.6185, allocations: 1.494 MB / 0.5217 GB, free: 8.434 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001748/0.6187, allocations: 25.7 kB / 0.5217 GB, free: 8.402 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003856/0.6191, allocations: 0.6685 MB / 0.5224 GB, free: 7.719 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008901/0.62, allocations: 1.17 MB / 0.5235 GB, free: 6.531 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001701/0.6201, allocations: 0 / 0.5235 GB, free: 6.531 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0002072/0.6203, allocations: 437.1 kB / 0.5239 GB, free: 6.098 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002025/0.6224, allocations: 1.151 MB / 0.525 GB, free: 4.941 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002264/0.6246, allocations: 1.412 MB / 0.5264 GB, free: 3.484 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002359/0.627, allocations: 1.324 MB / 0.5277 GB, free: 2.152 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.673e-06/0.627, allocations: 7.938 kB / 0.5277 GB, free: 2.145 MB / 378.7 MB Notification: Performance of matching and sorting (n=431) (initialization): time 0.01001/0.637, allocations: 4.204 MB / 0.5318 GB, free: 13.89 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.481e-05/0.6371, allocations: 4 kB / 0.5318 GB, free: 13.89 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.433e-05/0.6371, allocations: 4 kB / 0.5318 GB, free: 13.89 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005714/0.6428, allocations: 1.359 MB / 0.5332 GB, free: 12.5 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003001/0.6458, allocations: 0.5888 MB / 0.5337 GB, free: 11.91 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02542/0.6713, allocations: 18.35 MB / 0.5517 GB, free: 8.723 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002898/0.6742, allocations: 76 kB / 0.5517 GB, free: 8.648 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002961/0.6745, allocations: 112.1 kB / 0.5518 GB, free: 8.539 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.0005564/0.6751, allocations: 160.2 kB / 0.552 GB, free: 8.375 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004434/0.6755, allocations: 260.8 kB / 0.5522 GB, free: 8.117 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00976/0.6853, allocations: 4.095 MB / 0.5562 GB, free: 3.961 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.126e-05/0.6854, allocations: 36 kB / 0.5563 GB, free: 3.926 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.183e-05/0.6854, allocations: 7.938 kB / 0.5563 GB, free: 3.918 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.033e-05/0.6854, allocations: 15.94 kB / 0.5563 GB, free: 3.902 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01681/0.7022, allocations: 8.643 MB / 0.5647 GB, free: 11.06 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.143e-05/0.7023, allocations: 4.469 kB / 0.5647 GB, free: 11.05 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002857/0.7051, allocations: 0.5188 MB / 0.5653 GB, free: 10.54 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005327/0.7105, allocations: 1.255 MB / 0.5665 GB, free: 9.262 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002173/0.7107, allocations: 23.95 kB / 0.5665 GB, free: 9.238 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1145/0.8252, allocations: 16.49 MB / 0.5826 GB, free: 156.2 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.02363/0.8489, allocations: 11.72 MB / 0.594 GB, free: 153.6 MB / 426.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.01066/0.8595, allocations: 6.209 MB / 0.6001 GB, free: 152.6 MB / 426.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.01265/0.8722, allocations: 8.432 MB / 0.6083 GB, free: 148.9 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001171/0.8734, allocations: 0.6836 MB / 0.609 GB, free: 148.4 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004103/0.8738, allocations: 7.453 kB / 0.609 GB, free: 148.4 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001969/0.8758, allocations: 97.25 kB / 0.6091 GB, free: 148.4 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003228/0.8761, allocations: 195.9 kB / 0.6093 GB, free: 148.3 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002121/0.8764, allocations: 101.2 kB / 0.6094 GB, free: 148.3 MB / 426.7 MB Notification: Performance of sort global known variables: time 0.001283/0.8776, allocations: 1.136 MB / 0.6105 GB, free: 147.8 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.003036/0.8807, allocations: 0.8043 MB / 0.6113 GB, free: 147.8 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.0006934/0.8814, allocations: 318 kB / 0.6116 GB, free: 147.7 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.005308/0.8867, allocations: 3.992 MB / 0.6155 GB, free: 145.7 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 4.749e-06/0.8867, allocations: 1.156 kB / 0.6155 GB, free: 145.7 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003441/0.8902, allocations: 2.642 MB / 0.6181 GB, free: 144.2 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001182/0.8914, allocations: 235.5 kB / 0.6183 GB, free: 144.2 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009034/0.9004, allocations: 5.311 MB / 0.6235 GB, free: 141.9 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002012/0.9024, allocations: 1.999 MB / 0.6254 GB, free: 141.1 MB / 426.7 MB Notification: Performance of SimCode: time 4.11e-07/0.9024, allocations: 0 / 0.6254 GB, free: 141.1 MB / 426.7 MB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonQuasiStationary_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Magnetic_FluxTubes_Examples_SolenoidActuator_ComparisonQuasiStationary_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-07 Modelica_3_2_3_Modelica_Magnetic_FluxTubes_Examples_SolenoidActuator_ComparisonQuasiStationary.fmu > Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonQuasiStationary.pipe 2>&1)