Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonQuasiStationary.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonQuasiStationary,fileNamePrefix="Modelica_3_2_3_cpp_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_cpp_Modelica_Magnetic_FluxTubes_Examples_SolenoidActuator_ComparisonQuasiStationary",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001563/0.001569, allocations: 189.2 kB / 16.4 MB, free: 5.625 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.137/2.137, allocations: 205.4 MB / 222.5 MB, free: 13.85 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001236/0.001235, allocations: 94.86 kB / 270.9 MB, free: 13.37 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004059/0.000406, allocations: 8 kB / 327.1 MB, free: 15 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09978/0.1002, allocations: 47.59 MB / 374.6 MB, free: 15.34 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonQuasiStationary): time 0.01579/0.1161, allocations: 8.796 MB / 383.4 MB, free: 6.504 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.009421/0.1256, allocations: 3.22 MB / 386.7 MB, free: 3.27 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002109/0.1277, allocations: 35.88 kB / 386.7 MB, free: 3.234 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002082/0.1298, allocations: 0.556 MB / 387.3 MB, free: 2.676 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.005988/0.1359, allocations: 0.9115 MB / 388.2 MB, free: 1.762 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.004638/0.1406, allocations: 0.5539 MB / 388.7 MB, free: 1.207 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.3347/0.4753, allocations: 2.047 MB / 390.8 MB, free: 9.277 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001939/0.4773, allocations: 0.6945 MB / 391.5 MB, free: 9.141 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00282/0.4802, allocations: 0.9979 MB / 392.5 MB, free: 9.141 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003465/0.4837, allocations: 1.199 MB / 393.7 MB, free: 9.141 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001181/0.4849, allocations: 133 kB / 393.8 MB, free: 9.141 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001505/0.4864, allocations: 151.7 kB / 393.9 MB, free: 9.141 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0007665/0.4872, allocations: 483.6 kB / 394.4 MB, free: 9.141 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001457/0.4887, allocations: 0.5123 MB / 394.9 MB, free: 9.031 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.006394/0.4951, allocations: 3.284 MB / 398.2 MB, free: 8.812 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.489e-06/0.4952, allocations: 0.8125 kB / 398.2 MB, free: 8.812 MB / 282.7 MB Notification: Performance of FrontEnd: time 3.095e-06/0.4952, allocations: 1.719 kB / 398.2 MB, free: 8.812 MB / 282.7 MB Notification: Performance of Transformations before backend: time 0.0001738/0.4954, allocations: 0 / 398.2 MB, free: 8.812 MB / 282.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.01209/0.5075, allocations: 2.733 MB / 400.9 MB, free: 7.242 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.132e-05/0.5075, allocations: 9.25 kB / 400.9 MB, free: 7.242 MB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001194/0.5087, allocations: 292.7 kB / 401.2 MB, free: 7.137 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009295/0.5097, allocations: 292.7 kB / 401.5 MB, free: 6.988 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005209/0.5149, allocations: 1.442 MB / 403 MB, free: 6.254 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001997/0.5152, allocations: 157.8 kB / 403.1 MB, free: 6.246 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000679/0.5159, allocations: 202 kB / 403.3 MB, free: 6.246 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007259/0.5231, allocations: 1.855 MB / 405.2 MB, free: 5.785 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.561e-05/0.5233, allocations: 10.77 kB / 405.2 MB, free: 5.777 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003247/0.5236, allocations: 83.22 kB / 405.3 MB, free: 5.777 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.52e-05/0.5237, allocations: 49.41 kB / 405.3 MB, free: 5.777 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0102/0.5339, allocations: 1.888 MB / 407.2 MB, free: 5.492 MB / 282.7 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.03114/0.5651, allocations: 7.272 MB / 414.5 MB, free: 1.008 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009339/0.5745, allocations: 2.232 MB / 416.7 MB, free: 15.72 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004352/0.575, allocations: 37.55 kB / 416.7 MB, free: 15.72 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.22e-05/0.5751, allocations: 57.09 kB / 416.8 MB, free: 15.66 MB / 298.7 MB Notification: Performance of pre-optimization done (n=234): time 8.245e-06/0.5751, allocations: 0 / 416.8 MB, free: 15.66 MB / 298.7 MB Notification: Performance of matching and sorting (n=361): time 0.1712/0.7463, allocations: 17.2 MB / 434 MB, free: 15.26 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.2526/0.999, allocations: 30.28 MB / 464.3 MB, free: 356 kB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00635/1.005, allocations: 1.776 MB / 466 MB, free: 14.57 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0009445/1.006, allocations: 81.7 kB / 466.1 MB, free: 14.48 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00149/1.008, allocations: 0.9074 MB / 467 MB, free: 13.57 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002861/1.011, allocations: 1.194 MB / 468.2 MB, free: 12.39 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007594/1.012, allocations: 68 kB / 468.3 MB, free: 12.32 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0005341/1.012, allocations: 433.8 kB / 468.7 MB, free: 11.89 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00812/1.02, allocations: 1.19 MB / 469.9 MB, free: 10.7 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007967/1.028, allocations: 1.494 MB / 471.4 MB, free: 9.148 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00801/1.036, allocations: 1.378 MB / 472.8 MB, free: 7.762 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.698e-05/1.036, allocations: 2.516 kB / 472.8 MB, free: 7.762 MB / 346.7 MB Notification: Performance of matching and sorting (n=425) (initialization): time 0.02857/1.065, allocations: 4.265 MB / 477 MB, free: 3.449 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.624e-05/1.065, allocations: 4 kB / 477.1 MB, free: 3.445 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.988e-05/1.065, allocations: 4 kB / 477.1 MB, free: 3.441 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01429/1.079, allocations: 1.279 MB / 478.3 MB, free: 2.145 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008827/1.088, allocations: 0.5578 MB / 478.9 MB, free: 1.586 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.06031/1.149, allocations: 18.17 MB / 497.1 MB, free: 14.48 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004605/1.153, allocations: 155.9 kB / 497.2 MB, free: 14.33 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004317/1.154, allocations: 116 kB / 497.3 MB, free: 14.22 MB / 378.7 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.002085/1.156, allocations: 0.5755 MB / 497.9 MB, free: 13.63 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007576/1.157, allocations: 260.8 kB / 498.2 MB, free: 13.38 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01792/1.175, allocations: 4.387 MB / 0.4908 GB, free: 8.93 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01626/1.191, allocations: 3.83 MB / 0.4945 GB, free: 5.043 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.735e-05/1.191, allocations: 4 kB / 0.4945 GB, free: 5.039 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.449e-05/1.191, allocations: 15.94 kB / 0.4945 GB, free: 5.023 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03101/1.222, allocations: 8.713 MB / 0.503 GB, free: 12.21 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.346e-05/1.222, allocations: 4 kB / 0.503 GB, free: 12.21 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004768/1.227, allocations: 475.4 kB / 0.5035 GB, free: 11.75 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.009399/1.236, allocations: 1.32 MB / 0.5048 GB, free: 10.4 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007819/1.237, allocations: 79.97 kB / 0.5049 GB, free: 10.32 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03834/1.276, allocations: 17 MB / 0.5215 GB, free: 8.398 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.4086/1.684, allocations: 26.9 MB / 0.5477 GB, free: 138.5 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02336/1.708, allocations: 6.14 MB / 0.5537 GB, free: 137.9 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00216/1.71, allocations: 0.5896 MB / 0.5543 GB, free: 137.8 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007223/1.711, allocations: 59.5 kB / 0.5544 GB, free: 137.8 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003525/1.714, allocations: 145.5 kB / 0.5545 GB, free: 137.8 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009945/1.715, allocations: 268.5 kB / 0.5548 GB, free: 137.8 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003325/1.715, allocations: 97.75 kB / 0.5548 GB, free: 137.8 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.002612/1.718, allocations: 1.236 MB / 0.5561 GB, free: 137.7 MB / 426.7 MB Notification: Performance of sort global known variables: time 3.71e-07/1.718, allocations: 1.094 kB / 0.5561 GB, free: 137.7 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.00514/1.723, allocations: 0.9456 MB / 0.557 GB, free: 137.7 MB / 426.7 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.02248/1.746, allocations: 7.545 MB / 0.5643 GB, free: 135 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.01143/1.757, allocations: 4.428 MB / 0.5687 GB, free: 132.9 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 6.743e-06/1.757, allocations: 0 / 0.5687 GB, free: 132.9 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.007439/1.765, allocations: 3.057 MB / 0.5717 GB, free: 131.1 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002716/1.767, allocations: 306.9 kB / 0.5719 GB, free: 131 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05593/1.823, allocations: 22.36 MB / 0.5938 GB, free: 112.3 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001728/1.825, allocations: 1.829 MB / 0.5956 GB, free: 110.8 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003009/1.828, allocations: 1.086 MB / 0.5966 GB, free: 109.8 MB / 426.7 MB Notification: Performance of SimCode: time 1.352e-06/1.828, allocations: 0 / 0.5966 GB, free: 109.8 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.764/6.593, allocations: 135.4 MB / 0.7289 GB, free: 127.9 MB / 426.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonQuasiStationary.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonQuasiStationary.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonQuasiStationary.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonQuasiStationary.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonQuasiStationary_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Magnetic_FluxTubes_Examples_SolenoidActuator_ComparisonQuasiStationary_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-07 Modelica_3_2_3_cpp_Modelica_Magnetic_FluxTubes_Examples_SolenoidActuator_ComparisonQuasiStationary.fmu > Modelica_3.2.3_cpp_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonQuasiStationary.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_cpp_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonQuasiStationary_res.mat does not exist to compare? outputFormat=mat