Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Analog.Examples.ShowSaturatingInductor.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.ShowSaturatingInductor,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_ShowSaturatingInductor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.ShowSaturatingInductor,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_ShowSaturatingInductor",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008286/0.0008287, allocations: 93.27 kB / 17 MB, free: 6.398 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009167/0.000917, allocations: 193.3 kB / 17.91 MB, free: 5.926 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.464/1.464, allocations: 227.3 MB / 246 MB, free: 11.99 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000374/0.000374, allocations: 8 kB / 306.8 MB, free: 1.48 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.132/0.1324, allocations: 51.5 MB / 358.3 MB, free: 13.98 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ShowSaturatingInductor): time 0.002148/0.1346, allocations: 1.711 MB / 360 MB, free: 12.25 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001001/0.1356, allocations: 0.5809 MB / 360.6 MB, free: 11.67 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.445e-05/0.1357, allocations: 4 kB / 360.6 MB, free: 11.66 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 4.199e-05/0.1358, allocations: 11.91 kB / 360.6 MB, free: 11.65 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001325/0.1359, allocations: 31.7 kB / 360.7 MB, free: 11.62 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003618/0.1363, allocations: 79.84 kB / 360.7 MB, free: 11.54 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001775/0.1365, allocations: 171.3 kB / 360.9 MB, free: 11.38 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001442/0.1366, allocations: 33.47 kB / 360.9 MB, free: 11.34 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001989/0.1368, allocations: 71.7 kB / 361 MB, free: 11.27 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001042/0.1369, allocations: 67.75 kB / 361.1 MB, free: 11.2 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.434e-05/0.137, allocations: 8 kB / 361.1 MB, free: 11.19 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.434e-05/0.137, allocations: 15.98 kB / 361.1 MB, free: 11.18 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 3.497e-05/0.1371, allocations: 31.78 kB / 361.1 MB, free: 11.14 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 4.016e-05/0.1371, allocations: 53.64 kB / 361.2 MB, free: 11.09 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001697/0.1373, allocations: 127.9 kB / 361.3 MB, free: 10.96 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.871e-06/0.1373, allocations: 3.984 kB / 361.3 MB, free: 10.96 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.493e-06/0.1373, allocations: 0 / 361.3 MB, free: 10.96 MB / 302.1 MB Notification: Performance of Transformations before backend: time 8.556e-06/0.1373, allocations: 4 kB / 361.3 MB, free: 10.95 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: 23 * Number of variables: 23 Notification: Performance of Generate backend data structure: time 0.0006957/0.138, allocations: 450.7 kB / 361.8 MB, free: 10.46 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.369e-05/0.1381, allocations: 15.97 kB / 361.8 MB, free: 10.45 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.711e-05/0.1381, allocations: 42.55 kB / 361.8 MB, free: 10.4 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003708/0.1385, allocations: 55.78 kB / 361.9 MB, free: 10.34 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001761/0.1387, allocations: 202 kB / 362.1 MB, free: 10.11 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.632e-05/0.1387, allocations: 11.95 kB / 362.1 MB, free: 10.1 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.226e-05/0.1388, allocations: 11.98 kB / 362.1 MB, free: 10.09 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003175/0.1391, allocations: 148 kB / 362.2 MB, free: 9.926 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.141e-05/0.1391, allocations: 3.938 kB / 362.2 MB, free: 9.922 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.736e-05/0.1391, allocations: 8 kB / 362.2 MB, free: 9.914 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.863e-06/0.1391, allocations: 4 kB / 362.2 MB, free: 9.91 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002647/0.1394, allocations: 95.94 kB / 362.3 MB, free: 9.816 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008923/0.1403, allocations: 0.5071 MB / 362.8 MB, free: 9.254 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000276/0.1406, allocations: 106.5 kB / 362.9 MB, free: 9.141 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001774/0.1408, allocations: 64.83 kB / 363 MB, free: 9.074 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.941e-05/0.1408, allocations: 11.94 kB / 363 MB, free: 9.062 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.235e-05/0.1409, allocations: 34.52 kB / 363.1 MB, free: 9.02 MB / 302.1 MB Notification: Performance of pre-optimization done (n=7): time 1.372e-06/0.1409, allocations: 0 / 363.1 MB, free: 9.02 MB / 302.1 MB Notification: Performance of matching and sorting (n=7): time 0.000442/0.1413, allocations: 153.4 kB / 363.2 MB, free: 8.863 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.908e-05/0.1414, allocations: 102.8 kB / 363.3 MB, free: 8.738 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001425/0.1415, allocations: 159.7 kB / 363.5 MB, free: 8.57 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.095e-05/0.1416, allocations: 25.7 kB / 363.5 MB, free: 8.539 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.839e-05/0.1416, allocations: 115.9 kB / 363.6 MB, free: 8.422 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.766e-05/0.1417, allocations: 27.8 kB / 363.6 MB, free: 8.395 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.637e-06/0.1417, allocations: 4 kB / 363.6 MB, free: 8.391 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 9.033e-05/0.1418, allocations: 318.8 kB / 363.9 MB, free: 8.07 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001214/0.1419, allocations: 43.91 kB / 364 MB, free: 8.027 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001445/0.1421, allocations: 88.19 kB / 364.1 MB, free: 7.926 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001377/0.1422, allocations: 44.02 kB / 364.1 MB, free: 7.883 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.625e-06/0.1422, allocations: 0 / 364.1 MB, free: 7.883 MB / 302.1 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0003147/0.1425, allocations: 153.4 kB / 364.3 MB, free: 7.727 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.725e-05/0.1426, allocations: 11.94 kB / 364.3 MB, free: 7.715 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.358e-06/0.1426, allocations: 0 / 364.3 MB, free: 7.715 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.248e-05/0.1426, allocations: 4 kB / 364.3 MB, free: 7.711 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005399/0.1431, allocations: 83.92 kB / 364.4 MB, free: 7.629 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001237/0.1444, allocations: 1.409 MB / 365.8 MB, free: 6.082 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001565/0.1446, allocations: 19.92 kB / 365.8 MB, free: 6.062 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.287e-05/0.1446, allocations: 4 kB / 365.8 MB, free: 6.059 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * 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 (11): * Single equations (assignments): 10 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001018/0.1447, allocations: 130.4 kB / 365.9 MB, free: 5.926 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.198e-05/0.1447, allocations: 11.86 kB / 365.9 MB, free: 5.914 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004328/0.1452, allocations: 159.2 kB / 366.1 MB, free: 5.746 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.886e-06/0.1452, allocations: 0 / 366.1 MB, free: 5.746 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.062e-06/0.1452, allocations: 0 / 366.1 MB, free: 5.746 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.298e-06/0.1452, allocations: 7.922 kB / 366.1 MB, free: 5.738 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006735/0.1459, allocations: 479.9 kB / 366.6 MB, free: 5.207 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.933e-06/0.1459, allocations: 4.031 kB / 366.6 MB, free: 5.203 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001348/0.146, allocations: 23.98 kB / 366.6 MB, free: 5.18 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000239/0.1463, allocations: 36.81 kB / 366.6 MB, free: 5.141 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.518e-05/0.1463, allocations: 4 kB / 366.6 MB, free: 5.137 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001021/0.1473, allocations: 1.288 MB / 367.9 MB, free: 3.719 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.263e-06/0.1474, allocations: 0 / 367.9 MB, free: 3.719 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005926/0.148, allocations: 313.6 kB / 368.2 MB, free: 3.391 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.267e-05/0.148, allocations: 93.05 kB / 368.3 MB, free: 3.281 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.641e-05/0.1481, allocations: 4 kB / 368.3 MB, free: 3.277 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001629/0.1482, allocations: 15.98 kB / 368.3 MB, free: 3.262 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.554e-05/0.1483, allocations: 11.94 kB / 368.4 MB, free: 3.25 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.803e-06/0.1483, allocations: 12 kB / 368.4 MB, free: 3.238 MB / 302.1 MB Notification: Performance of sorting global known variables: time 9.101e-05/0.1484, allocations: 126.6 kB / 368.5 MB, free: 3.117 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1484, allocations: 0 / 368.5 MB, free: 3.117 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002963/0.1487, allocations: 39.84 kB / 368.5 MB, free: 3.078 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 2 (SaturatingInductance1.Psi,Inductance1.i) * 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 (7): * Single equations (assignments): 6 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.0008969/0.1496, allocations: 0.8234 MB / 369.3 MB, free: 2.219 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0006698/0.1503, allocations: 151.8 kB / 369.5 MB, free: 2.07 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 5.611e-06/0.1503, allocations: 4.062 kB / 369.5 MB, free: 2.066 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003335/0.1507, allocations: 162.6 kB / 369.7 MB, free: 1.895 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002596/0.1509, allocations: 15.94 kB / 369.7 MB, free: 1.879 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00235/0.1533, allocations: 1.125 MB / 370.8 MB, free: 0.6992 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.1993/0.3526, allocations: 0.7132 MB / 371.5 MB, free: 18.93 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.000121/0.3528, allocations: 13.95 kB / 371.5 MB, free: 18.92 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001075/0.3529, allocations: 41.27 kB / 371.6 MB, free: 18.91 MB / 302.1 MB Notification: Performance of SimCode: time 1.052e-06/0.3529, allocations: 0 / 371.6 MB, free: 18.91 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01673/0.3696, allocations: 2.917 MB / 374.5 MB, free: 18.75 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000181/0.3699, allocations: 223.5 kB / 374.7 MB, free: 18.52 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.953/2.323, allocations: 3.75 kB / 374.7 MB, free: 18.52 MB / 302.1 MB (rm -f Modelica_trunk_Modelica.Electrical.Analog.Examples.ShowSaturatingInductor.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Analog.Examples.ShowSaturatingInductor.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Analog.Examples.ShowSaturatingInductor.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.ShowSaturatingInductor.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Analog.Examples.ShowSaturatingInductor_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Analog_Examples_ShowSaturatingInductor_fmu --startTime=0 --stopTime=6.2832 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Analog_Examples_ShowSaturatingInductor.fmu > Modelica_trunk_Modelica.Electrical.Analog.Examples.ShowSaturatingInductor.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Electrical.Analog.Examples.ShowSaturatingInductor_res.mat does not exist to compare? outputFormat=mat