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.0008064/0.0008063, allocations: 85.12 kB / 16.31 MB, free: 5.645 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.0008592/0.0008592, allocations: 180.6 kB / 17.21 MB, free: 5.566 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.349/1.349, allocations: 223.2 MB / 241.2 MB, free: 5.426 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003067/0.0003068, allocations: 4.844 kB / 300.9 MB, free: 6.02 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09857/0.09889, allocations: 50.43 MB / 351.3 MB, free: 11.59 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonQuasiStatic): time 0.0097/0.1086, allocations: 9.735 MB / 361.1 MB, free: 1.824 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.005548/0.1142, allocations: 3.16 MB / 364.2 MB, free: 14.65 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001232/0.1155, allocations: 31.94 kB / 364.3 MB, free: 14.62 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001115/0.1166, allocations: 0.5715 MB / 364.8 MB, free: 14.04 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001894/0.1185, allocations: 0.7569 MB / 365.6 MB, free: 13.28 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001464/0.12, allocations: 0.5616 MB / 366.2 MB, free: 12.72 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.003891/0.1239, allocations: 3.004 MB / 369.2 MB, free: 9.707 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001417/0.1253, allocations: 0.6957 MB / 369.9 MB, free: 8.984 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001953/0.1273, allocations: 1.012 MB / 370.9 MB, free: 7.969 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001667/0.129, allocations: 1.245 MB / 372.1 MB, free: 6.719 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002784/0.1293, allocations: 143.8 kB / 372.3 MB, free: 6.582 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004604/0.1297, allocations: 168 kB / 372.4 MB, free: 6.418 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004935/0.1303, allocations: 494 kB / 372.9 MB, free: 5.934 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000676/0.1309, allocations: 0.512 MB / 373.4 MB, free: 5.414 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002893/0.1338, allocations: 3.342 MB / 376.8 MB, free: 2.062 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.193e-06/0.1339, allocations: 0 / 376.8 MB, free: 2.062 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.464e-06/0.1339, allocations: 0 / 376.8 MB, free: 2.062 MB / 302.1 MB Notification: Performance of Transformations before backend: time 8.601e-05/0.134, allocations: 0 / 376.8 MB, free: 2.062 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.006068/0.14, allocations: 2.745 MB / 379.5 MB, free: 15.25 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.903e-05/0.1401, allocations: 8.031 kB / 379.5 MB, free: 15.24 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004909/0.1406, allocations: 287.4 kB / 379.8 MB, free: 14.95 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004227/0.141, allocations: 288.4 kB / 380.1 MB, free: 14.66 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00235/0.1434, allocations: 1.325 MB / 381.4 MB, free: 13.29 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001255/0.1435, allocations: 156.1 kB / 381.6 MB, free: 13.13 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002682/0.1438, allocations: 203.9 kB / 381.8 MB, free: 12.93 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003787/0.1476, allocations: 1.901 MB / 383.7 MB, free: 10.97 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.016e-05/0.1476, allocations: 11.94 kB / 383.7 MB, free: 10.96 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001761/0.1478, allocations: 84 kB / 383.7 MB, free: 10.88 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.283e-05/0.1479, allocations: 52 kB / 383.8 MB, free: 10.83 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00398/0.1519, allocations: 1.957 MB / 385.8 MB, free: 8.855 MB / 318.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.0126/0.1645, allocations: 7.484 MB / 393.2 MB, free: 1.086 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003659/0.1682, allocations: 2.293 MB / 395.5 MB, free: 14.75 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002444/0.1706, allocations: 1.378 MB / 396.9 MB, free: 13.37 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001322/0.1708, allocations: 37.97 kB / 396.9 MB, free: 13.33 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.826e-05/0.1708, allocations: 56.56 kB / 397 MB, free: 13.27 MB / 334.1 MB Notification: Performance of pre-optimization done (n=234): time 5.932e-06/0.1708, allocations: 0 / 397 MB, free: 13.27 MB / 334.1 MB Notification: Performance of matching and sorting (n=351): time 0.05437/0.2252, allocations: 17.79 MB / 414.8 MB, free: 11.27 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.274e-05/0.2253, allocations: 86.17 kB / 414.9 MB, free: 11.18 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002392/0.2277, allocations: 1.832 MB / 416.7 MB, free: 9.34 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002072/0.2279, allocations: 85.7 kB / 416.8 MB, free: 9.25 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007497/0.2287, allocations: 0.9733 MB / 417.8 MB, free: 8.266 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009044/0.2296, allocations: 1.159 MB / 418.9 MB, free: 7.09 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001686/0.2298, allocations: 64 kB / 419 MB, free: 7.027 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0002091/0.23, allocations: 432.7 kB / 419.4 MB, free: 6.598 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002408/0.2324, allocations: 1.229 MB / 420.6 MB, free: 5.367 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002535/0.235, allocations: 1.547 MB / 422.2 MB, free: 3.762 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002593/0.2376, allocations: 1.412 MB / 423.6 MB, free: 2.34 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.222e-06/0.2376, allocations: 4 kB / 423.6 MB, free: 2.336 MB / 350.1 MB Notification: Performance of matching and sorting (n=412) (initialization): time 0.2061/0.4437, allocations: 4.461 MB / 428.1 MB, free: 61.73 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.034e-05/0.4438, allocations: 7.969 kB / 428.1 MB, free: 61.73 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.841e-05/0.4438, allocations: 3.656 kB / 428.1 MB, free: 61.73 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005178/0.449, allocations: 1.33 MB / 429.4 MB, free: 61.66 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002811/0.4518, allocations: 0.5393 MB / 429.9 MB, free: 61.64 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02319/0.475, allocations: 18.85 MB / 448.8 MB, free: 50.46 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002502/0.4775, allocations: 116.5 kB / 448.9 MB, free: 50.41 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002557/0.4778, allocations: 110.6 kB / 449 MB, free: 50.38 MB / 350.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.001298/0.4791, allocations: 0.5825 MB / 449.6 MB, free: 49.97 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003733/0.4795, allocations: 253.9 kB / 449.8 MB, free: 49.9 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009101/0.4886, allocations: 4.434 MB / 454.3 MB, free: 47.96 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.515e-05/0.4887, allocations: 31.91 kB / 454.3 MB, free: 47.96 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.628e-06/0.4887, allocations: 3.844 kB / 454.3 MB, free: 47.96 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.939e-05/0.4887, allocations: 15.84 kB / 454.3 MB, free: 47.96 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01409/0.5028, allocations: 8.441 MB / 462.8 MB, free: 42.2 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.437e-05/0.5029, allocations: 4 kB / 462.8 MB, free: 42.2 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002172/0.5051, allocations: 471.6 kB / 463.2 MB, free: 41.74 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004448/0.5095, allocations: 1.264 MB / 464.5 MB, free: 40.45 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002856/0.5098, allocations: 67.98 kB / 464.6 MB, free: 40.39 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01859/0.5284, allocations: 17.48 MB / 482 MB, free: 21.99 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.16e-06/0.5285, allocations: 15.47 kB / 482.1 MB, free: 21.98 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01154/0.54, allocations: 6.153 MB / 488.2 MB, free: 15.71 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001479/0.5416, allocations: 0.6148 MB / 488.8 MB, free: 15.07 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005503/0.5421, allocations: 63.98 kB / 488.9 MB, free: 15.01 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001815/0.5439, allocations: 123.9 kB / 489 MB, free: 14.89 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006319/0.5446, allocations: 254.8 kB / 489.3 MB, free: 14.64 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001813/0.5448, allocations: 95.98 kB / 489.4 MB, free: 14.54 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.001691/0.5465, allocations: 1.278 MB / 490.6 MB, free: 13.27 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.5465, allocations: 0 / 490.6 MB, free: 13.27 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.003281/0.5498, allocations: 0.8672 MB / 491.5 MB, free: 12.41 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.01275/0.5625, allocations: 7.043 MB / 498.5 MB, free: 5.398 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.007679/0.5703, allocations: 4.469 MB / 0.4912 GB, free: 0.8203 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 7.714e-06/0.5703, allocations: 0 / 0.4912 GB, free: 0.8203 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.005223/0.5755, allocations: 2.989 MB / 0.4941 GB, free: 13.74 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002712/0.5783, allocations: 355.6 kB / 0.4945 GB, free: 13.39 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04276/0.6211, allocations: 18.85 MB / 0.5129 GB, free: 9.434 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002473/0.6236, allocations: 1.702 MB / 0.5146 GB, free: 7.695 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.002476/0.6261, allocations: 288.1 kB / 0.5148 GB, free: 7.406 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001852/0.628, allocations: 1.05 MB / 0.5159 GB, free: 6.355 MB / 382.1 MB Notification: Performance of SimCode: time 1.212e-06/0.628, allocations: 7.875 kB / 0.5159 GB, free: 6.348 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1194/0.7474, allocations: 69.8 MB / 0.584 GB, free: 1.047 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000353/0.7478, allocations: 286.2 kB / 0.5843 GB, free: 0.6914 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.656/5.404, allocations: 2.969 kB / 0.5843 GB, free: 0.6914 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