Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Magnetic.QuasiStatic.FluxTubes.VariableComponents.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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) 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(ModelicaTest.Magnetic.QuasiStatic.FluxTubes.VariableComponents,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Magnetic_QuasiStatic_FluxTubes_VariableComponents",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Magnetic.QuasiStatic.FluxTubes.VariableComponents,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Magnetic_QuasiStatic_FluxTubes_VariableComponents",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.0009595/0.0009597, allocations: 99.03 kB / 16.99 MB, free: 6.402 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.001027/0.001027, allocations: 178.6 kB / 17.88 MB, free: 5.957 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.339/1.339, allocations: 223.2 MB / 241.8 MB, free: 388 kB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.224/0.224, allocations: 44.22 MB / 337.1 MB, free: 2.902 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003167/0.0003168, allocations: 8 kB / 409.6 MB, free: 27.61 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1428/0.1431, allocations: 61.92 MB / 471.5 MB, free: 13.66 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Magnetic.QuasiStatic.FluxTubes.VariableComponents): time 0.0028/0.146, allocations: 1.972 MB / 473.5 MB, free: 11.67 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001592/0.1476, allocations: 0.9392 MB / 474.5 MB, free: 10.73 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.809e-05/0.1477, allocations: 4 kB / 474.5 MB, free: 10.72 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002942/0.148, allocations: 91.45 kB / 474.5 MB, free: 10.63 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002773/0.1483, allocations: 91.77 kB / 474.6 MB, free: 10.54 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009658/0.1493, allocations: 0.5022 MB / 475.1 MB, free: 10.04 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002543/0.1495, allocations: 155.7 kB / 475.3 MB, free: 9.887 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008774/0.1504, allocations: 464.7 kB / 475.7 MB, free: 9.414 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001382/0.1506, allocations: 79.7 kB / 475.8 MB, free: 9.336 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001362/0.1507, allocations: 99.55 kB / 475.9 MB, free: 9.238 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.121e-05/0.1507, allocations: 12 kB / 475.9 MB, free: 9.227 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000268/0.151, allocations: 115.9 kB / 476 MB, free: 9.113 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 3.402e-05/0.1511, allocations: 27.91 kB / 476.1 MB, free: 9.086 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 5.166e-05/0.1511, allocations: 69.58 kB / 476.1 MB, free: 9.012 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000367/0.1515, allocations: 295.4 kB / 476.4 MB, free: 8.723 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.118e-06/0.1515, allocations: 0 / 476.4 MB, free: 8.723 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.503e-06/0.1515, allocations: 0 / 476.4 MB, free: 8.723 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.131e-06/0.1515, allocations: 0 / 476.4 MB, free: 8.723 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 61 * Number of variables: 61 Notification: Performance of Generate backend data structure: time 0.001233/0.1528, allocations: 0.5811 MB / 477 MB, free: 8.094 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.301e-05/0.1528, allocations: 8.031 kB / 477 MB, free: 8.086 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.021e-05/0.1529, allocations: 62.53 kB / 477.1 MB, free: 8.016 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003144/0.1532, allocations: 55.69 kB / 477.1 MB, free: 7.961 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001503/0.1534, allocations: 186.8 kB / 477.3 MB, free: 7.738 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.256e-05/0.1534, allocations: 28.5 kB / 477.3 MB, free: 7.711 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.727e-05/0.1535, allocations: 24 kB / 477.4 MB, free: 7.688 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005745/0.154, allocations: 295.4 kB / 477.7 MB, free: 7.383 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.545e-05/0.1541, allocations: 3.938 kB / 477.7 MB, free: 7.379 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.592e-05/0.1541, allocations: 12 kB / 477.7 MB, free: 7.367 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.003e-05/0.1541, allocations: 8 kB / 477.7 MB, free: 7.359 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005608/0.1547, allocations: 249.6 kB / 477.9 MB, free: 7.117 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001508/0.1562, allocations: 1.005 MB / 478.9 MB, free: 6.039 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005355/0.1567, allocations: 399.2 kB / 479.3 MB, free: 5.594 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001276/0.1569, allocations: 85.17 kB / 479.4 MB, free: 5.492 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.021e-05/0.1569, allocations: 34.56 kB / 479.4 MB, free: 5.449 MB / 350.1 MB Notification: Performance of pre-optimization done (n=19): time 1.373e-06/0.1569, allocations: 0 / 479.4 MB, free: 5.449 MB / 350.1 MB Notification: Performance of matching and sorting (n=19): time 0.001247/0.1582, allocations: 0.5346 MB / 480 MB, free: 4.867 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.004e-05/0.1583, allocations: 89.17 kB / 480.1 MB, free: 4.762 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001268/0.1584, allocations: 140 kB / 480.2 MB, free: 4.617 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.554e-05/0.1584, allocations: 29.7 kB / 480.2 MB, free: 4.582 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000103/0.1585, allocations: 148.1 kB / 480.4 MB, free: 4.434 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.559e-05/0.1586, allocations: 67 kB / 480.4 MB, free: 4.367 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.112e-05/0.1586, allocations: 7.938 kB / 480.4 MB, free: 4.359 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001596/0.1588, allocations: 322.8 kB / 480.8 MB, free: 4.035 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002262/0.159, allocations: 83.95 kB / 480.8 MB, free: 3.953 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002512/0.1593, allocations: 120.2 kB / 481 MB, free: 3.82 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002468/0.1595, allocations: 99.95 kB / 481.1 MB, free: 3.723 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.916e-06/0.1595, allocations: 0 / 481.1 MB, free: 3.723 MB / 350.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0006429/0.1602, allocations: 298.9 kB / 481.3 MB, free: 3.418 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.775e-05/0.1602, allocations: 10.03 kB / 481.4 MB, free: 3.41 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.626e-06/0.1602, allocations: 0 / 481.4 MB, free: 3.41 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002203/0.1605, allocations: 45.69 kB / 481.4 MB, free: 3.359 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000208/0.1607, allocations: 48.2 kB / 481.4 MB, free: 3.312 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002128/0.1628, allocations: 2.655 MB / 484.1 MB, free: 396 kB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001563/0.163, allocations: 35.98 kB / 484.1 MB, free: 360 kB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.745e-05/0.163, allocations: 8 kB / 484.1 MB, free: 352 kB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (19): * Single equations (assignments): 17 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 2,(1,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001731/0.1632, allocations: 141.7 kB / 484.3 MB, free: 200 kB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.477e-05/0.1633, allocations: 15.81 kB / 484.3 MB, free: 184 kB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007222/0.164, allocations: 292.5 kB / 484.6 MB, free: 15.88 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.735e-06/0.164, allocations: 4 kB / 484.6 MB, free: 15.88 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.093e-06/0.164, allocations: 8.234 kB / 484.6 MB, free: 15.87 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.138e-06/0.164, allocations: 0 / 484.6 MB, free: 15.87 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00113/0.1652, allocations: 0.6658 MB / 485.3 MB, free: 15.15 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.976e-06/0.1652, allocations: 0 / 485.3 MB, free: 15.15 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002013/0.1654, allocations: 55.91 kB / 485.3 MB, free: 15.09 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000123/0.1655, allocations: 45.69 kB / 485.4 MB, free: 15.04 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.631e-05/0.1655, allocations: 4 kB / 485.4 MB, free: 15.04 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001851/0.1674, allocations: 2.639 MB / 488 MB, free: 12.14 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.807e-06/0.1674, allocations: 3.984 kB / 488 MB, free: 12.13 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009172/0.1683, allocations: 0.5663 MB / 488.6 MB, free: 11.54 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.127e-05/0.1684, allocations: 93.09 kB / 488.7 MB, free: 11.43 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.903e-05/0.1684, allocations: 0 / 488.7 MB, free: 11.43 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001828/0.1686, allocations: 19.98 kB / 488.7 MB, free: 11.41 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.012e-05/0.1687, allocations: 19.97 kB / 488.7 MB, free: 11.39 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.212e-05/0.1687, allocations: 8 kB / 488.7 MB, free: 11.38 MB / 366.1 MB Notification: Performance of sorting global known variables: time 8.731e-05/0.1688, allocations: 99.27 kB / 488.8 MB, free: 11.29 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1688, allocations: 0 / 488.8 MB, free: 11.29 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0004788/0.1693, allocations: 83.69 kB / 488.9 MB, free: 11.2 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 1 (magFluxSource.port_p.reference.gamma) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (15): * Single equations (assignments): 13 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 2,(1,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001353/0.1707, allocations: 1.186 MB / 490.1 MB, free: 9.977 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.000769/0.1715, allocations: 447.8 kB / 490.5 MB, free: 9.516 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.404e-06/0.1715, allocations: 0 / 490.5 MB, free: 9.516 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004128/0.1719, allocations: 345.2 kB / 490.9 MB, free: 9.152 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002584/0.1722, allocations: 10.52 kB / 490.9 MB, free: 9.145 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002511/0.1747, allocations: 1.854 MB / 492.7 MB, free: 7.215 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004147/0.1751, allocations: 0.7399 MB / 493.5 MB, free: 6.449 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 9.505e-05/0.1752, allocations: 21.41 kB / 493.5 MB, free: 6.426 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001083/0.1753, allocations: 55.48 kB / 493.5 MB, free: 6.375 MB / 366.1 MB Notification: Performance of SimCode: time 2.51e-07/0.1753, allocations: 3.938 kB / 493.5 MB, free: 6.371 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01654/0.1919, allocations: 3.839 MB / 497.4 MB, free: 2.734 MB / 366.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001992/0.1921, allocations: 226.3 kB / 497.6 MB, free: 2.492 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.772/1.965, allocations: 0 / 497.6 MB, free: 2.492 MB / 366.1 MB (rm -f ModelicaTest_4.0.0_ModelicaTest.Magnetic.QuasiStatic.FluxTubes.VariableComponents.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Magnetic.QuasiStatic.FluxTubes.VariableComponents.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Magnetic.QuasiStatic.FluxTubes.VariableComponents.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Magnetic.QuasiStatic.FluxTubes.VariableComponents.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Magnetic.QuasiStatic.FluxTubes.VariableComponents_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Magnetic_QuasiStatic_FluxTubes_VariableComponents_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Magnetic_QuasiStatic_FluxTubes_VariableComponents.fmu > ModelicaTest_4.0.0_ModelicaTest.Magnetic.QuasiStatic.FluxTubes.VariableComponents.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_4.0.0_ModelicaTest.Magnetic.QuasiStatic.FluxTubes.VariableComponents_res.mat does not exist to compare? outputFormat=mat