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: "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonQuasiStatic,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_FluxTubes_Examples_SolenoidActuator_ComparisonQuasiStatic",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonQuasiStatic,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_FluxTubes_Examples_SolenoidActuator_ComparisonQuasiStatic",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009893/0.0009893, allocations: 176.4 kB / 8.349 MB, free: 0.7266 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.336/1.336, allocations: 221.5 MB / 230.3 MB, free: 7.559 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.0008417/0.0008417, allocations: 94.14 kB / 281.2 MB, free: 5.309 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.107e-05/2.11e-05, allocations: 4 kB / 337.1 MB, free: 9.918 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09662/0.09666, allocations: 50.42 MB / 387.6 MB, free: 7.461 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3457/0.4424, allocations: 94.52 MB / 482.1 MB, free: 156 kB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002196/0.4426, allocations: 89.58 kB / 482.2 MB, free: 68 kB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1331/0.5758, allocations: 50.9 MB / 0.5206 GB, free: 13 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.382e-06/0.5758, allocations: 0 / 0.5206 GB, free: 13 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0001176/0.5759, allocations: 52 kB / 0.5206 GB, free: 12.95 MB / 410.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.005891/0.5818, allocations: 2.307 MB / 0.5229 GB, free: 10.58 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.638e-05/0.5819, allocations: 8.031 kB / 0.5229 GB, free: 10.57 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001303/0.5832, allocations: 292.4 kB / 0.5232 GB, free: 10.28 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002908/0.5861, allocations: 1.334 MB / 0.5245 GB, free: 8.895 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.83e-05/0.5862, allocations: 72 kB / 0.5245 GB, free: 8.824 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002714/0.5865, allocations: 123.9 kB / 0.5247 GB, free: 8.703 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.003182/0.5897, allocations: 1.664 MB / 0.5263 GB, free: 7.031 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002942/0.5927, allocations: 1.487 MB / 0.5277 GB, free: 5.496 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.807e-05/0.5927, allocations: 4 kB / 0.5277 GB, free: 5.492 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001441/0.5929, allocations: 3.938 kB / 0.5277 GB, free: 5.488 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.7e-05/0.5929, allocations: 51.94 kB / 0.5278 GB, free: 5.438 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01186/0.6048, allocations: 7.269 MB / 0.5349 GB, free: 13.91 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002961/0.6078, allocations: 2.129 MB / 0.537 GB, free: 11.74 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002048/0.6098, allocations: 1.212 MB / 0.5381 GB, free: 10.54 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001528/0.61, allocations: 49.89 kB / 0.5382 GB, free: 10.49 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.47e-05/0.6101, allocations: 56.56 kB / 0.5382 GB, free: 10.43 MB / 426.7 MB Notification: Performance of pre-optimization done (n=240): time 4.929e-06/0.6101, allocations: 0 / 0.5382 GB, free: 10.43 MB / 426.7 MB Notification: Performance of matching and sorting (n=372): time 0.2569/0.867, allocations: 12.48 MB / 0.5504 GB, free: 110.5 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.781e-05/0.8671, allocations: 90.03 kB / 0.5505 GB, free: 110.4 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003147/0.8702, allocations: 1.497 MB / 0.552 GB, free: 110.2 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005501/0.8708, allocations: 27.02 kB / 0.552 GB, free: 110.2 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007796/0.8716, allocations: 0.9577 MB / 0.5529 GB, free: 110.1 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001243/0.8729, allocations: 1.175 MB / 0.5541 GB, free: 109.5 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003732/0.8733, allocations: 0 / 0.5541 GB, free: 109.5 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001934/0.8735, allocations: 434.3 kB / 0.5545 GB, free: 109.2 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002257/0.8757, allocations: 1.185 MB / 0.5557 GB, free: 109.2 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00237/0.8781, allocations: 1.457 MB / 0.5571 GB, free: 109 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002615/0.8807, allocations: 1.361 MB / 0.5584 GB, free: 109 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.197e-05/0.8807, allocations: 1 kB / 0.5584 GB, free: 109 MB / 426.7 MB Notification: Performance of matching and sorting (n=433) (initialization): time 0.01112/0.8919, allocations: 4.262 MB / 0.5626 GB, free: 108.6 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.686e-05/0.8919, allocations: 7.844 kB / 0.5626 GB, free: 108.6 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.6e-05/0.892, allocations: 4.047 kB / 0.5626 GB, free: 108.6 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005782/0.8978, allocations: 1.306 MB / 0.5639 GB, free: 108.6 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003366/0.9012, allocations: 0.5766 MB / 0.5644 GB, free: 108.6 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02403/0.9252, allocations: 18.51 MB / 0.5825 GB, free: 95.89 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003258/0.9285, allocations: 103.9 kB / 0.5826 GB, free: 95.89 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007303/0.9293, allocations: 118.6 kB / 0.5827 GB, free: 95.87 MB / 426.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 (314): * Single equations (assignments): 305 * Array equations: 2 * 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%) 3,(1,100.0%) 3,(1,100.0%) 4,(1,100.0%) 7} * Non-linear torn systems: 2 {3 51,3 42} Notification: Performance of prepare postOptimizeDAE: time 0.001091/0.9304, allocations: 148 kB / 0.5829 GB, free: 95.76 MB / 426.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.009015/0.9394, allocations: 3.996 MB / 0.5868 GB, free: 94.23 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007532/0.9402, allocations: 256 kB / 0.587 GB, free: 94.1 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009525/0.9497, allocations: 4.262 MB / 0.5912 GB, free: 92.42 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.008445/0.9582, allocations: 3.761 MB / 0.5948 GB, free: 90.96 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.048e-05/0.9583, allocations: 3.406 kB / 0.5948 GB, free: 90.96 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.468e-05/0.9584, allocations: 27.83 kB / 0.5949 GB, free: 90.96 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01797/0.9763, allocations: 9.142 MB / 0.6038 GB, free: 86.73 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.964e-05/0.9764, allocations: 10.53 kB / 0.6038 GB, free: 86.73 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002644/0.979, allocations: 0.5 MB / 0.6043 GB, free: 86.68 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00521/0.9843, allocations: 1.36 MB / 0.6056 GB, free: 86.34 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003854/0.9847, allocations: 29.92 kB / 0.6057 GB, free: 86.33 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02041/1.005, allocations: 17.1 MB / 0.6224 GB, free: 73.49 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.05499/1.06, allocations: 26.49 MB / 0.6482 GB, free: 49.7 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01306/1.073, allocations: 6.347 MB / 0.6544 GB, free: 43.59 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001746/1.075, allocations: 0.6983 MB / 0.6551 GB, free: 42.98 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007776/1.076, allocations: 11.89 kB / 0.6551 GB, free: 42.97 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002415/1.078, allocations: 97.25 kB / 0.6552 GB, free: 42.9 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008233/1.079, allocations: 280 kB / 0.6555 GB, free: 42.73 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000309/1.079, allocations: 102.2 kB / 0.6556 GB, free: 42.64 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.001865/1.081, allocations: 1.136 MB / 0.6567 GB, free: 41.61 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.31e-07/1.081, allocations: 3.469 kB / 0.6567 GB, free: 41.61 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.005008/1.086, allocations: 0.9163 MB / 0.6576 GB, free: 40.69 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * Number of states: 9 ($STATESET2.x[2],$STATESET2.x[1],$STATESET1.x,advancedSolenoid.c_par1.v,advancedSolenoid.c_par2.v,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 (256): * Single equations (assignments): 249 * 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%) 2,(1,100.0%) 4,(1,100.0%) 6} * Non-linear torn systems: 2 {3 43,4 53} Notification: Performance of Backend phase and start with SimCode phase: time 0.01234/1.099, allocations: 8.131 MB / 0.6655 GB, free: 32.99 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.006805/1.106, allocations: 4.287 MB / 0.6697 GB, free: 28.8 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 1.055e-05/1.106, allocations: 4 kB / 0.6697 GB, free: 28.79 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004598/1.11, allocations: 2.948 MB / 0.6726 GB, free: 25.95 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002643/1.113, allocations: 236.8 kB / 0.6728 GB, free: 25.75 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01445/1.127, allocations: 6.107 MB / 0.6788 GB, free: 20.18 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001569/1.129, allocations: 1.842 MB / 0.6806 GB, free: 18.71 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.002274/1.131, allocations: 324.3 kB / 0.6809 GB, free: 18.49 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001726/1.133, allocations: 1.08 MB / 0.6819 GB, free: 17.5 MB / 426.7 MB Notification: Performance of SimCode: time 1.011e-06/1.133, allocations: 0 / 0.6819 GB, free: 17.5 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3962/1.529, allocations: 83.34 MB / 0.7633 GB, free: 104.3 MB / 442.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002739/1.53, allocations: 206.6 kB / 0.7635 GB, free: 104.1 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 5.562/7.091, allocations: 2.812 kB / 0.7635 GB, free: 104.1 MB / 442.7 MB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonQuasiStatic_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Magnetic_FluxTubes_Examples_SolenoidActuator_ComparisonQuasiStatic_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-07 Modelica_4_0_0_Modelica_Magnetic_FluxTubes_Examples_SolenoidActuator_ComparisonQuasiStatic.fmu > Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonQuasiStatic.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonQuasiStatic_res.mat does not exist to compare? outputFormat=mat