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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) 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 3.2.3+maint.om/package.mo", uses=false) 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 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008265/0.0008268, allocations: 95.88 kB / 16.95 MB, free: 6.457 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0008212/0.0008212, allocations: 182.5 kB / 17.84 MB, free: 6.008 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.811/1.811, allocations: 205.4 MB / 224 MB, free: 13.16 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0005321/0.0005323, allocations: 12 kB / 280.9 MB, free: 3.633 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1143/0.1149, allocations: 47.58 MB / 328.5 MB, free: 3.98 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonQuasiStationary): time 0.01178/0.1267, allocations: 9.637 MB / 338.1 MB, free: 10.3 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.007527/0.1343, allocations: 3.091 MB / 341.2 MB, free: 7.199 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002394/0.1368, allocations: 39.88 kB / 341.2 MB, free: 7.16 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00144/0.1382, allocations: 0.5638 MB / 341.8 MB, free: 6.594 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002642/0.1409, allocations: 0.753 MB / 342.5 MB, free: 5.836 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001877/0.1428, allocations: 0.5577 MB / 343.1 MB, free: 5.277 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.004677/0.1475, allocations: 3.022 MB / 346.1 MB, free: 2.246 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001394/0.1489, allocations: 0.6801 MB / 346.8 MB, free: 1.543 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002181/0.1511, allocations: 1.012 MB / 347.8 MB, free: 0.5273 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00188/0.153, allocations: 1.241 MB / 349.1 MB, free: 15.28 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003422/0.1533, allocations: 140 kB / 349.2 MB, free: 15.14 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000519/0.1538, allocations: 167.9 kB / 349.4 MB, free: 14.98 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004327/0.1543, allocations: 497.9 kB / 349.8 MB, free: 14.49 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006762/0.155, allocations: 0.5081 MB / 350.3 MB, free: 13.97 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003378/0.1584, allocations: 3.342 MB / 353.7 MB, free: 10.62 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.286e-06/0.1584, allocations: 0 / 353.7 MB, free: 10.62 MB / 302.1 MB Notification: Performance of FrontEnd: time 4.689e-06/0.1584, allocations: 0 / 353.7 MB, free: 10.62 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0001259/0.1585, allocations: 3.828 kB / 353.7 MB, free: 10.62 MB / 302.1 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.007195/0.1657, allocations: 2.73 MB / 356.4 MB, free: 7.824 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.74e-05/0.1658, allocations: 12.03 kB / 356.4 MB, free: 7.812 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0008247/0.1666, allocations: 291.3 kB / 356.7 MB, free: 7.516 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00074/0.1674, allocations: 296.4 kB / 357 MB, free: 7.223 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002864/0.1703, allocations: 1.317 MB / 358.3 MB, free: 5.852 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001846/0.1705, allocations: 164.1 kB / 358.5 MB, free: 5.688 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003096/0.1708, allocations: 211.9 kB / 358.7 MB, free: 5.48 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004445/0.1753, allocations: 1.901 MB / 360.6 MB, free: 3.523 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.292e-05/0.1753, allocations: 3.938 kB / 360.6 MB, free: 3.52 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001849/0.1755, allocations: 84 kB / 360.7 MB, free: 3.438 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.368e-05/0.1756, allocations: 56 kB / 360.7 MB, free: 3.383 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004346/0.1799, allocations: 1.96 MB / 362.7 MB, free: 1.406 MB / 302.1 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01432/0.1943, allocations: 7.484 MB / 370.2 MB, free: 9.637 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003757/0.1981, allocations: 2.285 MB / 372.5 MB, free: 7.309 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002574/0.2007, allocations: 1.386 MB / 373.8 MB, free: 5.926 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001642/0.2008, allocations: 33.97 kB / 373.9 MB, free: 5.891 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.712e-05/0.2009, allocations: 56.56 kB / 373.9 MB, free: 5.828 MB / 318.1 MB Notification: Performance of pre-optimization done (n=234): time 6.022e-06/0.2009, allocations: 0 / 373.9 MB, free: 5.828 MB / 318.1 MB Notification: Performance of matching and sorting (n=351): time 0.2801/0.4811, allocations: 17.79 MB / 391.7 MB, free: 46.67 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.569e-05/0.4812, allocations: 96.41 kB / 391.8 MB, free: 46.59 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003115/0.4843, allocations: 1.829 MB / 393.6 MB, free: 45.91 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0005964/0.4849, allocations: 82.08 kB / 393.7 MB, free: 45.84 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006924/0.4856, allocations: 0.9828 MB / 394.7 MB, free: 45.07 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009606/0.4866, allocations: 1.153 MB / 395.9 MB, free: 44.16 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000173/0.4868, allocations: 63.5 kB / 395.9 MB, free: 44.11 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.00017/0.4869, allocations: 424.5 kB / 396.3 MB, free: 43.75 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002301/0.4893, allocations: 1.238 MB / 397.6 MB, free: 43.23 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00234/0.4916, allocations: 1.542 MB / 399.1 MB, free: 42.48 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002417/0.494, allocations: 1.416 MB / 400.5 MB, free: 41.76 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.614e-06/0.4941, allocations: 3.562 kB / 400.5 MB, free: 41.76 MB / 318.1 MB Notification: Performance of matching and sorting (n=412) (initialization): time 0.009165/0.5032, allocations: 4.468 MB / 405 MB, free: 38.19 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.908e-05/0.5033, allocations: 4 kB / 405 MB, free: 38.18 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.088e-05/0.5034, allocations: 8 kB / 405 MB, free: 38.18 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00462/0.508, allocations: 1.329 MB / 406.3 MB, free: 36.82 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002718/0.5107, allocations: 0.5383 MB / 406.9 MB, free: 36.29 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02138/0.5321, allocations: 18.86 MB / 425.7 MB, free: 16.53 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002873/0.5351, allocations: 116 kB / 425.9 MB, free: 16.42 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003213/0.5354, allocations: 111.9 kB / 426 MB, free: 16.31 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 19 * 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (298): * Single equations (assignments): 291 * 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%) 3,(1,100.0%) 3,(1,100.0%) 4,(1,100.0%) 5} * Non-linear torn systems: 2 {3 50,2 43} Notification: Performance of prepare postOptimizeDAE: time 0.001755/0.5372, allocations: 0.5733 MB / 426.5 MB, free: 15.73 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006392/0.5378, allocations: 252.9 kB / 426.8 MB, free: 15.48 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00929/0.5471, allocations: 4.435 MB / 431.2 MB, free: 10.97 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.342e-05/0.5472, allocations: 32 kB / 431.3 MB, free: 10.94 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.207e-06/0.5472, allocations: 4 kB / 431.3 MB, free: 10.94 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.328e-05/0.5472, allocations: 19.92 kB / 431.3 MB, free: 10.92 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01463/0.5619, allocations: 8.438 MB / 439.7 MB, free: 2.395 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.438e-05/0.5619, allocations: 4 kB / 439.7 MB, free: 2.391 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002328/0.5643, allocations: 483.6 kB / 440.2 MB, free: 1.922 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004575/0.5689, allocations: 1.256 MB / 441.4 MB, free: 0.6484 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005398/0.5694, allocations: 63.98 kB / 441.5 MB, free: 0.5859 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02408/0.5935, allocations: 17.49 MB / 459 MB, free: 14.16 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.528e-06/0.5936, allocations: 4 kB / 459 MB, free: 14.16 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01458/0.6082, allocations: 6.147 MB / 465.1 MB, free: 7.895 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001951/0.6102, allocations: 0.6187 MB / 465.8 MB, free: 7.254 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005397/0.6107, allocations: 63.98 kB / 465.8 MB, free: 7.191 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001787/0.6125, allocations: 127.9 kB / 466 MB, free: 7.066 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006887/0.6132, allocations: 254.8 kB / 466.2 MB, free: 6.816 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001873/0.6134, allocations: 83.98 kB / 466.3 MB, free: 6.734 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.002019/0.6155, allocations: 1.282 MB / 467.6 MB, free: 5.461 MB / 350.1 MB Notification: Performance of sort global known variables: time 2.51e-07/0.6155, allocations: 0 / 467.6 MB, free: 5.461 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.003831/0.6193, allocations: 0.8643 MB / 468.4 MB, free: 4.598 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * Number of states: 9 (advancedSolenoid.coil1.i,advancedSolenoid.coil2.i,advancedSolenoid.c_par1.v,advancedSolenoid.c_par2.v,advancedFeed_x.s,advancedFeed_x.v,simpleSolenoid.coil.i,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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (243): * Single equations (assignments): 236 * 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%) 5} * Non-linear torn systems: 2 {3 41,3 49} Notification: Performance of Backend phase and start with SimCode phase: time 0.01503/0.6344, allocations: 7.042 MB / 475.5 MB, free: 13.46 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.009782/0.6442, allocations: 4.48 MB / 480 MB, free: 8.871 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.018e-05/0.6442, allocations: 0 / 480 MB, free: 8.871 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.005565/0.6498, allocations: 2.984 MB / 482.9 MB, free: 5.789 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002452/0.6523, allocations: 365.7 kB / 483.3 MB, free: 5.43 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04532/0.6976, allocations: 18.83 MB / 0.4904 GB, free: 1.465 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001691/0.6994, allocations: 1.705 MB / 0.492 GB, free: 15.73 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.002127/0.7015, allocations: 296.1 kB / 0.4923 GB, free: 15.43 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001805/0.7034, allocations: 1.05 MB / 0.4933 GB, free: 14.38 MB / 398.1 MB Notification: Performance of SimCode: time 1.193e-06/0.7034, allocations: 0 / 0.4933 GB, free: 14.38 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3294/1.033, allocations: 69.77 MB / 0.5615 GB, free: 107.8 MB / 414.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002199/1.033, allocations: 296.7 kB / 0.5618 GB, free: 107.4 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 5.376/6.409, allocations: 3.938 kB / 0.5618 GB, free: 107.4 MB / 414.1 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) Environment - environmentSimulation: TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonQuasiStationary_res.mat does not exist to compare? outputFormat=mat