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.0009275/0.0009275, allocations: 97.17 kB / 16.94 MB, free: 5.98 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.0009075/0.0009076, allocations: 183 kB / 17.82 MB, free: 5.652 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.476/1.476, allocations: 205.4 MB / 224 MB, free: 13.18 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.0004319/0.0004319, allocations: 15.5 kB / 280.9 MB, free: 3.645 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09187/0.09231, allocations: 47.57 MB / 328.4 MB, free: 4.004 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonQuasiStationary): time 0.008573/0.1009, allocations: 8.809 MB / 337.2 MB, free: 11.16 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.006498/0.1074, allocations: 3.209 MB / 340.4 MB, free: 7.938 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001897/0.1094, allocations: 35.88 kB / 340.5 MB, free: 7.902 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001306/0.1107, allocations: 0.5599 MB / 341 MB, free: 7.34 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002622/0.1133, allocations: 0.9154 MB / 342 MB, free: 6.422 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002122/0.1155, allocations: 0.5499 MB / 342.5 MB, free: 5.871 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.00481/0.1203, allocations: 2.056 MB / 344.6 MB, free: 3.816 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001161/0.1215, allocations: 0.6878 MB / 345.2 MB, free: 3.105 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001786/0.1233, allocations: 1.004 MB / 346.3 MB, free: 2.098 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001837/0.1252, allocations: 1.194 MB / 347.4 MB, free: 0.8984 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003663/0.1255, allocations: 132 kB / 347.6 MB, free: 0.7695 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005013/0.1261, allocations: 156 kB / 347.7 MB, free: 0.6172 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003847/0.1264, allocations: 486 kB / 348.2 MB, free: 144 kB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005778/0.127, allocations: 0.5082 MB / 348.7 MB, free: 15.62 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002753/0.1298, allocations: 3.291 MB / 352 MB, free: 12.32 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.785e-06/0.1298, allocations: 0 / 352 MB, free: 12.32 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.744e-06/0.1298, allocations: 0 / 352 MB, free: 12.32 MB / 302.1 MB Notification: Performance of Transformations before backend: time 8.697e-05/0.1299, allocations: 0 / 352 MB, free: 12.32 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.006316/0.1362, allocations: 2.729 MB / 354.7 MB, free: 9.527 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.352e-05/0.1363, allocations: 15.97 kB / 354.7 MB, free: 9.512 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004913/0.1368, allocations: 283.4 kB / 355 MB, free: 9.223 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004415/0.1372, allocations: 296.4 kB / 355.3 MB, free: 8.93 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002907/0.1402, allocations: 1.438 MB / 356.8 MB, free: 7.438 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001285/0.1403, allocations: 156.1 kB / 356.9 MB, free: 7.281 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000302/0.1406, allocations: 211.8 kB / 357.1 MB, free: 7.074 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004106/0.1447, allocations: 1.85 MB / 359 MB, free: 5.168 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.688e-05/0.1448, allocations: 4 kB / 359 MB, free: 5.164 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001918/0.145, allocations: 84 kB / 359 MB, free: 5.082 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.037e-05/0.1451, allocations: 48 kB / 359.1 MB, free: 5.035 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004362/0.1494, allocations: 1.898 MB / 361 MB, free: 3.121 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.01326/0.1627, allocations: 7.262 MB / 368.3 MB, free: 11.57 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003546/0.1663, allocations: 2.231 MB / 370.5 MB, free: 9.301 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000122/0.1664, allocations: 37.95 kB / 370.5 MB, free: 9.266 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.259e-05/0.1665, allocations: 56.56 kB / 370.6 MB, free: 9.203 MB / 318.1 MB Notification: Performance of pre-optimization done (n=234): time 5.781e-06/0.1665, allocations: 4 kB / 370.6 MB, free: 9.199 MB / 318.1 MB Notification: Performance of matching and sorting (n=361): time 0.211/0.3775, allocations: 17.19 MB / 387.8 MB, free: 46.35 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.07231/0.4498, allocations: 30.27 MB / 418 MB, free: 24.39 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002012/0.4519, allocations: 1.777 MB / 419.8 MB, free: 22.61 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0005036/0.4524, allocations: 81.7 kB / 419.9 MB, free: 22.52 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004598/0.4529, allocations: 0.9758 MB / 420.9 MB, free: 21.54 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007679/0.4536, allocations: 1.195 MB / 422.1 MB, free: 20.36 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001531/0.4538, allocations: 69.25 kB / 422.1 MB, free: 20.29 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001191/0.4539, allocations: 432.9 kB / 422.6 MB, free: 19.86 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001951/0.4559, allocations: 1.194 MB / 423.8 MB, free: 18.66 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002025/0.4579, allocations: 1.49 MB / 425.2 MB, free: 17.12 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002086/0.46, allocations: 1.374 MB / 426.6 MB, free: 15.73 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.871e-06/0.46, allocations: 4 kB / 426.6 MB, free: 15.73 MB / 318.1 MB Notification: Performance of matching and sorting (n=425) (initialization): time 0.007897/0.4679, allocations: 4.377 MB / 431 MB, free: 11.31 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.987e-05/0.468, allocations: 8.875 kB / 431 MB, free: 11.3 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.572e-05/0.468, allocations: 4 kB / 431 MB, free: 11.3 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004134/0.4721, allocations: 1.288 MB / 432.3 MB, free: 9.988 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002343/0.4745, allocations: 0.5539 MB / 432.9 MB, free: 9.434 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01952/0.494, allocations: 18.16 MB / 451 MB, free: 6.359 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002644/0.4967, allocations: 155.3 kB / 451.2 MB, free: 6.211 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002711/0.497, allocations: 113.1 kB / 451.3 MB, free: 6.102 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 18 * 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 (305): * Single equations (assignments): 296 * 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%) 4,(1,100.0%) 3,(1,100.0%) 3,(1,100.0%) 3,(1,100.0%) 5} * Non-linear torn systems: 2 {3 54,2 43} Notification: Performance of prepare postOptimizeDAE: time 0.001263/0.4983, allocations: 0.591 MB / 451.9 MB, free: 5.5 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004652/0.4987, allocations: 261 kB / 452.1 MB, free: 5.242 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01008/0.5088, allocations: 4.386 MB / 456.5 MB, free: 0.793 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.008765/0.5176, allocations: 3.828 MB / 460.3 MB, free: 12.91 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.593e-05/0.5177, allocations: 4 kB / 460.3 MB, free: 12.91 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.444e-05/0.5177, allocations: 15.94 kB / 460.4 MB, free: 12.89 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01762/0.5353, allocations: 8.708 MB / 469.1 MB, free: 4.078 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.581e-05/0.5354, allocations: 0 / 469.1 MB, free: 4.078 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002312/0.5377, allocations: 475.6 kB / 469.5 MB, free: 3.613 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004828/0.5426, allocations: 1.329 MB / 470.9 MB, free: 2.266 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003158/0.5429, allocations: 75.97 kB / 470.9 MB, free: 2.191 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02217/0.5651, allocations: 16.99 MB / 487.9 MB, free: 280 kB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.07078/0.6359, allocations: 26.92 MB / 0.5028 GB, free: 4.746 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01435/0.6503, allocations: 6.138 MB / 0.5088 GB, free: 14.46 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001528/0.6519, allocations: 0.5835 MB / 0.5094 GB, free: 13.85 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005938/0.6525, allocations: 64 kB / 0.5094 GB, free: 13.79 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002045/0.6546, allocations: 147.8 kB / 0.5096 GB, free: 13.64 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006734/0.6552, allocations: 267 kB / 0.5098 GB, free: 13.38 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002509/0.6555, allocations: 95.97 kB / 0.5099 GB, free: 13.29 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.00196/0.6575, allocations: 1.235 MB / 0.5111 GB, free: 12.06 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.6575, allocations: 0 / 0.5111 GB, free: 12.06 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.003764/0.6613, allocations: 0.9498 MB / 0.512 GB, free: 11.11 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * 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 () * 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%) 4,(1,100.0%) 2,(1,100.0%) 5} * Non-linear torn systems: 2 {4 42,5 55} Notification: Performance of Backend phase and start with SimCode phase: time 0.01474/0.676, allocations: 7.551 MB / 0.5194 GB, free: 3.438 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.1753/0.8514, allocations: 4.427 MB / 0.5237 GB, free: 130.7 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 7.584e-06/0.8514, allocations: 1.625 kB / 0.5237 GB, free: 130.7 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.005393/0.8568, allocations: 3.047 MB / 0.5267 GB, free: 129.8 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001923/0.8588, allocations: 312.6 kB / 0.527 GB, free: 129.8 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04419/0.903, allocations: 22.27 MB / 0.5488 GB, free: 118.9 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001739/0.9048, allocations: 1.83 MB / 0.5505 GB, free: 118.1 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.002162/0.907, allocations: 342.5 kB / 0.5509 GB, free: 118 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00148/0.9085, allocations: 1.062 MB / 0.5519 GB, free: 117.2 MB / 414.1 MB Notification: Performance of SimCode: time 1.031e-06/0.9085, allocations: 0 / 0.5519 GB, free: 117.2 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1018/1.01, allocations: 77.96 MB / 0.628 GB, free: 44.23 MB / 414.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001807/1.011, allocations: 291.7 kB / 0.6283 GB, free: 43.87 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.876/5.887, allocations: 0 / 0.6283 GB, free: 43.87 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