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/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 4.0.0+maint.om/package.mo", uses=false) 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) 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.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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009307/0.0009307, allocations: 95.86 kB / 16.3 MB, free: 5.996 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.001187/0.001186, allocations: 181.1 kB / 17.2 MB, free: 5.914 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.34/1.34, allocations: 223.2 MB / 241.1 MB, free: 14.56 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002726/0.0002727, allocations: 8 kB / 300.8 MB, free: 6.129 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09823/0.09852, allocations: 50.42 MB / 351.2 MB, free: 3.703 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonQuasiStatic): time 0.01147/0.11, allocations: 8.9 MB / 360.1 MB, free: 10.77 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.007575/0.1177, allocations: 3.282 MB / 363.4 MB, free: 7.48 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001693/0.1194, allocations: 35.88 kB / 363.5 MB, free: 7.445 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001171/0.1206, allocations: 0.556 MB / 364 MB, free: 6.887 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002489/0.1231, allocations: 0.9076 MB / 364.9 MB, free: 5.977 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001701/0.1248, allocations: 0.5732 MB / 365.5 MB, free: 5.402 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.003619/0.1284, allocations: 2.043 MB / 367.5 MB, free: 3.359 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001145/0.1296, allocations: 0.6917 MB / 368.2 MB, free: 2.641 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001777/0.1314, allocations: 1 MB / 369.2 MB, free: 1.637 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002284/0.1337, allocations: 1.198 MB / 370.4 MB, free: 444 kB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004215/0.1341, allocations: 132 kB / 370.6 MB, free: 312 kB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005448/0.1347, allocations: 151.9 kB / 370.7 MB, free: 160 kB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.1926/0.3273, allocations: 481.7 kB / 371.2 MB, free: 11.21 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001159/0.3285, allocations: 0.5146 MB / 371.7 MB, free: 11.18 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006569/0.3351, allocations: 3.283 MB / 375 MB, free: 10.96 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.259e-06/0.3351, allocations: 0.8438 kB / 375 MB, free: 10.96 MB / 302.1 MB Notification: Performance of FrontEnd: time 3.697e-06/0.3351, allocations: 2.969 kB / 375 MB, free: 10.96 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0002129/0.3354, allocations: 0 / 375 MB, free: 10.96 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.01198/0.3474, allocations: 2.732 MB / 377.7 MB, free: 9.664 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.188e-05/0.3474, allocations: 8.438 kB / 377.7 MB, free: 9.664 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001345/0.3488, allocations: 292 kB / 378 MB, free: 9.609 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001369/0.3502, allocations: 290.6 kB / 378.3 MB, free: 9.461 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004732/0.3549, allocations: 1.438 MB / 379.7 MB, free: 9.031 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002147/0.3552, allocations: 155.6 kB / 379.9 MB, free: 9.023 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000499/0.3557, allocations: 210.5 kB / 380.1 MB, free: 9.016 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004309/0.36, allocations: 1.859 MB / 381.9 MB, free: 8.875 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.682e-05/0.3601, allocations: 0 / 381.9 MB, free: 8.875 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002225/0.3603, allocations: 84.75 kB / 382 MB, free: 8.875 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.706e-05/0.3604, allocations: 48.72 kB / 382.1 MB, free: 8.875 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004481/0.3649, allocations: 1.893 MB / 384 MB, free: 8.656 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.01366/0.3786, allocations: 7.273 MB / 391.2 MB, free: 5.559 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003528/0.3821, allocations: 2.226 MB / 393.5 MB, free: 4.648 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001367/0.3823, allocations: 37.59 kB / 393.5 MB, free: 4.645 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.171e-05/0.3823, allocations: 57.22 kB / 393.6 MB, free: 4.59 MB / 302.1 MB Notification: Performance of pre-optimization done (n=234): time 4.449e-06/0.3823, allocations: 0 / 393.6 MB, free: 4.59 MB / 302.1 MB Notification: Performance of matching and sorting (n=361): time 0.05853/0.4409, allocations: 17.19 MB / 410.7 MB, free: 7.074 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.08723/0.5281, allocations: 30.27 MB / 441 MB, free: 8.359 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002869/0.531, allocations: 1.773 MB / 442.8 MB, free: 6.582 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000637/0.5317, allocations: 88 kB / 442.9 MB, free: 6.492 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007917/0.5325, allocations: 0.9779 MB / 443.9 MB, free: 5.508 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001347/0.5339, allocations: 1.19 MB / 445 MB, free: 4.328 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002558/0.5341, allocations: 68 kB / 445.1 MB, free: 4.262 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.000219/0.5344, allocations: 432.9 kB / 445.5 MB, free: 3.832 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002618/0.537, allocations: 1.194 MB / 446.7 MB, free: 2.637 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002892/0.5399, allocations: 1.488 MB / 448.2 MB, free: 1.094 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003053/0.543, allocations: 1.377 MB / 449.6 MB, free: 15.71 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.166e-05/0.543, allocations: 8 kB / 449.6 MB, free: 15.71 MB / 366.1 MB Notification: Performance of matching and sorting (n=425) (initialization): time 0.01144/0.5545, allocations: 4.375 MB / 454 MB, free: 11.36 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.854e-05/0.5545, allocations: 7.953 kB / 454 MB, free: 11.36 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.437e-05/0.5546, allocations: 4 kB / 454 MB, free: 11.35 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005022/0.5596, allocations: 1.281 MB / 455.3 MB, free: 10.05 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003284/0.5629, allocations: 0.5533 MB / 455.8 MB, free: 9.527 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0251/0.588, allocations: 18.17 MB / 474 MB, free: 6.516 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003091/0.5912, allocations: 152 kB / 474.1 MB, free: 6.367 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004675/0.5917, allocations: 116 kB / 474.3 MB, free: 6.254 MB / 382.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.001538/0.5932, allocations: 0.5781 MB / 474.8 MB, free: 5.695 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000547/0.5938, allocations: 259 kB / 475.1 MB, free: 5.441 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01076/0.6045, allocations: 4.395 MB / 479.5 MB, free: 1.047 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.009845/0.6144, allocations: 3.819 MB / 483.3 MB, free: 13.23 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.605e-05/0.6145, allocations: 7.938 kB / 483.3 MB, free: 13.22 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.98e-05/0.6145, allocations: 19.92 kB / 483.3 MB, free: 13.2 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01818/0.6327, allocations: 8.72 MB / 492 MB, free: 4.375 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.625e-05/0.6328, allocations: 4 kB / 492 MB, free: 4.371 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002421/0.6352, allocations: 471.6 kB / 492.5 MB, free: 3.91 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005005/0.6402, allocations: 1.332 MB / 493.8 MB, free: 2.559 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004089/0.6407, allocations: 67.97 kB / 493.9 MB, free: 2.492 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02191/0.6626, allocations: 17 MB / 0.4989 GB, free: 0.5664 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.07174/0.7344, allocations: 26.93 MB / 0.5252 GB, free: 5.035 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2256/0.96, allocations: 6.129 MB / 0.5312 GB, free: 144.6 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002344/0.9624, allocations: 0.5899 MB / 0.5318 GB, free: 144.5 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007391/0.9632, allocations: 63.75 kB / 0.5319 GB, free: 144.5 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002456/0.9656, allocations: 145.6 kB / 0.532 GB, free: 144.5 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008781/0.9665, allocations: 268.1 kB / 0.5323 GB, free: 144.5 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003256/0.9669, allocations: 90.64 kB / 0.5323 GB, free: 144.5 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.002861/0.9697, allocations: 1.238 MB / 0.5335 GB, free: 144.4 MB / 446.1 MB Notification: Performance of sort global known variables: time 5.61e-07/0.9698, allocations: 0 / 0.5335 GB, free: 144.4 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.00602/0.9758, allocations: 0.9528 MB / 0.5345 GB, free: 144.4 MB / 446.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.01769/0.9935, allocations: 7.552 MB / 0.5419 GB, free: 142.8 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.01222/1.006, allocations: 4.433 MB / 0.5462 GB, free: 141.8 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 1.338e-05/1.006, allocations: 1.375 kB / 0.5462 GB, free: 141.8 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.006963/1.013, allocations: 3.06 MB / 0.5492 GB, free: 140.6 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003153/1.016, allocations: 308 kB / 0.5495 GB, free: 140.4 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04811/1.064, allocations: 22.28 MB / 0.5712 GB, free: 126 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001432/1.066, allocations: 1.831 MB / 0.573 GB, free: 124.5 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.002436/1.068, allocations: 335.5 kB / 0.5733 GB, free: 124.2 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001532/1.07, allocations: 1.061 MB / 0.5744 GB, free: 123.3 MB / 446.1 MB Notification: Performance of SimCode: time 7.42e-07/1.07, allocations: 0 / 0.5744 GB, free: 123.3 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1173/1.187, allocations: 77.94 MB / 0.6505 GB, free: 46.26 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001942/1.187, allocations: 294.2 kB / 0.6508 GB, free: 45.9 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 5.271/6.458, allocations: 0 / 0.6508 GB, free: 45.9 MB / 446.1 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