Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_FluxTubes_Examples_SolenoidActuator_ComparisonPullInStroke",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_FluxTubes_Examples_SolenoidActuator_ComparisonPullInStroke",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 trunk/package.mo): time 0.0009829/0.0009829, allocations: 196.1 kB / 8.539 MB, free: 1.828 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.109/1.109, allocations: 225.5 MB / 234.4 MB, free: 3.328 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008368/0.0008368, allocations: 95.69 kB / 286.3 MB, free: 5.277 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0871/0.08795, allocations: 56.9 MB / 343.2 MB, free: 8.602 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07632/0.1643, allocations: 51.48 MB / 394.7 MB, free: 5.066 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2016/0.366, allocations: 96.27 MB / 491 MB, free: 13.05 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001909/0.3662, allocations: 92.88 kB / 491.1 MB, free: 13 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 528 * Number of variables: 528 Notification: Performance of Generate backend data structure: time 0.2086/0.5748, allocations: 85.26 MB / 0.5628 GB, free: 12.12 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.612e-05/0.5749, allocations: 8 kB / 0.5628 GB, free: 12.12 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00294/0.5778, allocations: 0.9107 MB / 0.5637 GB, free: 11.2 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008232/0.5861, allocations: 3.591 MB / 0.5672 GB, free: 7.539 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001024/0.5862, allocations: 72 kB / 0.5673 GB, free: 7.469 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004644/0.5867, allocations: 123.9 kB / 0.5674 GB, free: 7.348 MB / 442.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.003635/0.5903, allocations: 1.695 MB / 0.5691 GB, free: 5.645 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003404/0.5937, allocations: 1.737 MB / 0.5708 GB, free: 3.848 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.322e-05/0.5938, allocations: 0 / 0.5708 GB, free: 3.848 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001692/0.594, allocations: 0 / 0.5708 GB, free: 3.848 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.169e-05/0.594, allocations: 52 kB / 0.5708 GB, free: 3.797 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1172/0.7113, allocations: 9.816 MB / 0.5804 GB, free: 134.4 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001874/0.7132, allocations: 1.322 MB / 0.5817 GB, free: 134.3 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001576/0.7148, allocations: 1.187 MB / 0.5829 GB, free: 134.3 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001163/0.7149, allocations: 42.61 kB / 0.5829 GB, free: 134.3 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001335/0.7162, allocations: 1.031 MB / 0.5839 GB, free: 134.1 MB / 442.7 MB Notification: Performance of pre-optimization done (n=246): time 4.098e-06/0.7163, allocations: 0 / 0.5839 GB, free: 134.1 MB / 442.7 MB Notification: Performance of matching and sorting (n=382): time 0.03484/0.7511, allocations: 16.27 MB / 0.5998 GB, free: 129.6 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.887e-05/0.7512, allocations: 275.6 kB / 0.6001 GB, free: 129.3 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.1171/0.8683, allocations: 12.98 MB / 0.6127 GB, free: 126.5 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005115/0.8689, allocations: 29.64 kB / 0.6128 GB, free: 126.5 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001002/0.8699, allocations: 1.455 MB / 0.6142 GB, free: 125.8 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009016/0.8708, allocations: 1.204 MB / 0.6154 GB, free: 125 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001984/0.871, allocations: 0 / 0.6154 GB, free: 125 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001271/0.8711, allocations: 435.9 kB / 0.6158 GB, free: 124.6 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001909/0.873, allocations: 1.187 MB / 0.6169 GB, free: 124.1 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002041/0.8751, allocations: 1.502 MB / 0.6184 GB, free: 123.2 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002129/0.8772, allocations: 1.371 MB / 0.6197 GB, free: 122.6 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.111e-06/0.8772, allocations: 3.875 kB / 0.6197 GB, free: 122.6 MB / 442.7 MB Notification: Performance of matching and sorting (n=443) (initialization): time 0.01077/0.888, allocations: 4.95 MB / 0.6246 GB, free: 120.6 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.373e-05/0.8881, allocations: 5.125 kB / 0.6246 GB, free: 120.6 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.638e-05/0.8881, allocations: 4.062 kB / 0.6246 GB, free: 120.6 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006015/0.8941, allocations: 1.441 MB / 0.626 GB, free: 120.2 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003021/0.8971, allocations: 0.5748 MB / 0.6266 GB, free: 120.2 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02258/0.9197, allocations: 21.31 MB / 0.6474 GB, free: 104.1 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003372/0.9231, allocations: 93.52 kB / 0.6475 GB, free: 104.1 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002797/0.9234, allocations: 120.1 kB / 0.6476 GB, free: 104 MB / 442.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: 18 * Number of states: 0 () * Number of discrete variables: 9 ($whenCondition1,$PRE.comparisonWithFEA.nextTimeEvent,comparisonWithFEA.nextTimeEvent,$PRE.comparisonWithFEA.nextTimeEventScaled,comparisonWithFEA.nextTimeEventScaled,simpleSolenoid.armature.stopper_xMax.contact,simpleSolenoid.armature.stopper_xMin.contact,advancedSolenoid.armature.stopper_xMax.contact,advancedSolenoid.armature.stopper_xMin.contact) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (313): * Single equations (assignments): 304 * 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: 9 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 7 {(1,100.0%) 3,(1,100.0%) 3,(1,100.0%) 4,(1,100.0%) 4,(1,100.0%) 4,(1,100.0%) 7,(1,100.0%) 4} * Non-linear torn systems: 2 {3 42,3 55} Notification: Performance of prepare postOptimizeDAE: time 0.0005029/0.9239, allocations: 158.9 kB / 0.6477 GB, free: 103.9 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001063/0.925, allocations: 0.8232 MB / 0.6485 GB, free: 103.5 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0105/0.9355, allocations: 4.978 MB / 0.6534 GB, free: 101.6 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.609e-05/0.9355, allocations: 40.16 kB / 0.6534 GB, free: 101.6 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.308e-05/0.9356, allocations: 6.312 kB / 0.6534 GB, free: 101.6 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.73e-05/0.9356, allocations: 17.77 kB / 0.6534 GB, free: 101.6 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02058/0.9562, allocations: 12.99 MB / 0.6661 GB, free: 96.62 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.001e-05/0.9562, allocations: 3.375 kB / 0.6661 GB, free: 96.62 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002633/0.9589, allocations: 0.5038 MB / 0.6666 GB, free: 96.61 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005262/0.9641, allocations: 1.329 MB / 0.6679 GB, free: 96.22 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000217/0.9644, allocations: 30.08 kB / 0.668 GB, free: 96.2 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01937/0.9837, allocations: 19.1 MB / 0.6866 GB, free: 77.25 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.02438/1.008, allocations: 11.78 MB / 0.6981 GB, free: 66.61 MB / 442.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.01226/1.02, allocations: 7.384 MB / 0.7053 GB, free: 59.55 MB / 442.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.01404/1.034, allocations: 9.779 MB / 0.7149 GB, free: 50.11 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002424/1.037, allocations: 1.594 MB / 0.7164 GB, free: 48.61 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001032/1.038, allocations: 12 kB / 0.7164 GB, free: 48.59 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002487/1.04, allocations: 86.75 kB / 0.7165 GB, free: 48.53 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000321/1.041, allocations: 196.1 kB / 0.7167 GB, free: 48.42 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002311/1.041, allocations: 107.7 kB / 0.7168 GB, free: 48.32 MB / 442.7 MB Notification: Performance of sort global known variables: time 0.01033/1.051, allocations: 10.36 MB / 0.7269 GB, free: 39.06 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.004846/1.056, allocations: 1.472 MB / 0.7284 GB, free: 37.6 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 12 * Number of states: 9 (advancedSolenoid.x,advancedSolenoid.coil1.i,advancedSolenoid.armature.stopper_xMin.v_rel,advancedSolenoid.c_par1.v,advancedSolenoid.c_par2.v,advancedSolenoid.g_mLeakWork.Phi,$STATESET140042622097815.x,simpleSolenoid.x,simpleSolenoid.armature.stopper_xMin.v_rel) * Number of discrete variables: 7 (advancedSolenoid.armature.stopper_xMax.contact,advancedSolenoid.armature.stopper_xMin.contact,simpleSolenoid.armature.stopper_xMax.contact,simpleSolenoid.armature.stopper_xMin.contact,$whenCondition1,comparisonWithFEA.nextTimeEvent,comparisonWithFEA.nextTimeEventScaled) * Number of discrete states: 2 (comparisonWithFEA.nextTimeEvent,comparisonWithFEA.nextTimeEventScaled) * Top-level inputs: 0 Notification: Strong component statistics for simulation (270): * Single equations (assignments): 259 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 9 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 7 {(1,100.0%) 4,(1,100.0%) 2,(1,100.0%) 4,(1,100.0%) 6,(1,100.0%) 3,(1,100.0%) 2,(1,100.0%) 2} * Non-linear torn systems: 2 {3 47,3 43} Notification: Performance of Backend phase and start with SimCode phase: time 0.0008552/1.057, allocations: 359.5 kB / 0.7287 GB, free: 37.44 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.005912/1.063, allocations: 4.299 MB / 0.7329 GB, free: 33.19 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 3.326e-06/1.063, allocations: 4.062 kB / 0.7329 GB, free: 33.18 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003583/1.067, allocations: 2.89 MB / 0.7357 GB, free: 30.33 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00231/1.069, allocations: 403.2 kB / 0.7361 GB, free: 29.98 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02229/1.091, allocations: 16.79 MB / 0.7525 GB, free: 14.98 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004658/1.096, allocations: 4.563 MB / 0.757 GB, free: 11.67 MB / 442.7 MB Notification: Performance of SimCode: time 5.81e-07/1.096, allocations: 0 / 0.757 GB, free: 11.67 MB / 442.7 MB (rm -f Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke.pipe ; mkfifo Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke.pipe >> ../files/Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke_res.mat --tempDir=temp_Modelica_trunk_Modelica_Magnetic_FluxTubes_Examples_SolenoidActuator_ComparisonPullInStroke_fmu --startTime=0 --stopTime=0.05 --timeout=50 --tolerance=1e-07 Modelica_trunk_Modelica_Magnetic_FluxTubes_Examples_SolenoidActuator_ComparisonPullInStroke.fmu > Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke_res.mat does not exist to compare? outputFormat=mat