Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.Components.SinglePhaseInductance.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.Magnetic.FundamentalWave.Examples.Components.SinglePhaseInductance,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_FundamentalWave_Examples_Components_SinglePhaseInductance",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.Components.SinglePhaseInductance,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_FundamentalWave_Examples_Components_SinglePhaseInductance",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001024/0.001024, allocations: 101.8 kB / 17 MB, free: 6.355 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001393/0.001393, allocations: 191.4 kB / 17.9 MB, free: 5.914 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.424/1.424, allocations: 227.4 MB / 246 MB, free: 10.25 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002476/0.000248, allocations: 11.98 kB / 306.8 MB, free: 1.25 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1156/0.1159, allocations: 51.49 MB / 358.3 MB, free: 13.76 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.Components.SinglePhaseInductance): time 0.003622/0.1196, allocations: 2.798 MB / 361.1 MB, free: 10.95 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002068/0.1217, allocations: 1.251 MB / 362.4 MB, free: 9.688 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000156/0.1218, allocations: 8 kB / 362.4 MB, free: 9.68 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003285/0.1222, allocations: 107.4 kB / 362.5 MB, free: 9.574 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007872/0.123, allocations: 350.4 kB / 362.8 MB, free: 9.23 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002866/0.1233, allocations: 123.8 kB / 362.9 MB, free: 9.109 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005141/0.1238, allocations: 422.1 kB / 363.3 MB, free: 8.695 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002124/0.124, allocations: 127.1 kB / 363.5 MB, free: 8.566 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001744/0.1242, allocations: 135.4 kB / 363.6 MB, free: 8.434 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002345/0.1244, allocations: 175.2 kB / 363.8 MB, free: 8.262 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 3.995e-05/0.1245, allocations: 20 kB / 363.8 MB, free: 8.242 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003086/0.1248, allocations: 139.9 kB / 363.9 MB, free: 8.105 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 6.331e-05/0.1249, allocations: 67.69 kB / 364 MB, free: 8.039 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 7.822e-05/0.125, allocations: 89.52 kB / 364.1 MB, free: 7.945 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004081/0.1254, allocations: 419 kB / 364.5 MB, free: 7.535 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.16e-06/0.1254, allocations: 0 / 364.5 MB, free: 7.535 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.513e-06/0.1254, allocations: 0 / 364.5 MB, free: 7.535 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.161e-06/0.1254, allocations: 0 / 364.5 MB, free: 7.535 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: 84 * Number of variables: 84 Notification: Performance of Generate backend data structure: time 0.001211/0.1266, allocations: 0.6928 MB / 365.2 MB, free: 6.793 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.471e-05/0.1267, allocations: 8.031 kB / 365.2 MB, free: 6.785 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.313e-05/0.1268, allocations: 70.53 kB / 365.3 MB, free: 6.707 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006742/0.1274, allocations: 115.5 kB / 365.4 MB, free: 6.594 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000359/0.1278, allocations: 303.3 kB / 365.7 MB, free: 6.258 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.592e-05/0.1279, allocations: 28.94 kB / 365.7 MB, free: 6.23 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.967e-05/0.1279, allocations: 39.95 kB / 365.7 MB, free: 6.191 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005825/0.1285, allocations: 349.3 kB / 366.1 MB, free: 5.84 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.108e-05/0.1285, allocations: 0 / 366.1 MB, free: 5.84 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.401e-05/0.1286, allocations: 16 kB / 366.1 MB, free: 5.824 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.668e-06/0.1286, allocations: 12 kB / 366.1 MB, free: 5.812 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004597/0.129, allocations: 257.9 kB / 366.4 MB, free: 5.559 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001833/0.1309, allocations: 1.323 MB / 367.7 MB, free: 4.141 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003597/0.1313, allocations: 200.7 kB / 367.9 MB, free: 3.93 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001576/0.1314, allocations: 93.67 kB / 368 MB, free: 3.832 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0009533/0.1324, allocations: 1.196 MB / 369.2 MB, free: 2.461 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.424e-05/0.1324, allocations: 34.56 kB / 369.2 MB, free: 2.418 MB / 302.1 MB Notification: Performance of pre-optimization done (n=17): time 1.452e-06/0.1324, allocations: 4 kB / 369.2 MB, free: 2.414 MB / 302.1 MB Notification: Performance of matching and sorting (n=17): time 0.0005135/0.133, allocations: 241.2 kB / 369.4 MB, free: 2.172 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.279e-05/0.133, allocations: 81.11 kB / 369.5 MB, free: 2.074 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002762/0.1333, allocations: 275.2 kB / 369.8 MB, free: 1.797 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.766e-05/0.1333, allocations: 29.7 kB / 369.8 MB, free: 1.762 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001409/0.1335, allocations: 243.3 kB / 370.1 MB, free: 1.52 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.327e-05/0.1335, allocations: 59.19 kB / 370.1 MB, free: 1.461 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.62e-05/0.1335, allocations: 12 kB / 370.1 MB, free: 1.449 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001314/0.1337, allocations: 334.8 kB / 370.4 MB, free: 1.113 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001474/0.1338, allocations: 72.61 kB / 370.5 MB, free: 1.039 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002171/0.134, allocations: 206.3 kB / 370.7 MB, free: 0.7773 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001868/0.1342, allocations: 99.92 kB / 370.8 MB, free: 0.6797 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.418e-06/0.1343, allocations: 4 kB / 370.8 MB, free: 0.6758 MB / 302.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0004999/0.1348, allocations: 333.3 kB / 371.1 MB, free: 352 kB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.536e-05/0.1348, allocations: 8.031 kB / 371.2 MB, free: 344 kB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.334e-06/0.1348, allocations: 4 kB / 371.2 MB, free: 340 kB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.59e-05/0.1348, allocations: 8 kB / 371.2 MB, free: 332 kB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002675/0.1351, allocations: 79.89 kB / 371.2 MB, free: 252 kB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.196e-05/0.1351, allocations: 15.88 kB / 371.3 MB, free: 236 kB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001757/0.1353, allocations: 39.67 kB / 371.3 MB, free: 196 kB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.238e-05/0.1353, allocations: 19.95 kB / 371.3 MB, free: 176 kB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 20 * 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 (39): * Single equations (assignments): 39 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000139/0.1355, allocations: 161.7 kB / 371.5 MB, free: 4 kB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.1957/0.3311, allocations: 22.45 kB / 371.5 MB, free: 19.25 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001078/0.3313, allocations: 24.42 kB / 371.5 MB, free: 19.23 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.693e-06/0.3313, allocations: 2.125 kB / 371.5 MB, free: 19.23 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.183e-06/0.3313, allocations: 0.6562 kB / 371.5 MB, free: 19.23 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.18e-06/0.3313, allocations: 1.812 kB / 371.5 MB, free: 19.23 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009053/0.3322, allocations: 0.5121 MB / 372 MB, free: 18.93 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.028e-06/0.3322, allocations: 0.6875 kB / 372 MB, free: 18.93 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002296/0.3325, allocations: 47.36 kB / 372.1 MB, free: 18.93 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.16e-06/0.3325, allocations: 1.812 kB / 372.1 MB, free: 18.93 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.877e-05/0.3325, allocations: 6.484 kB / 372.1 MB, free: 18.93 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.557e-06/0.3325, allocations: 3.219 kB / 372.1 MB, free: 18.93 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.176e-06/0.3325, allocations: 2.078 kB / 372.1 MB, free: 18.93 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000492/0.333, allocations: 434.5 kB / 372.5 MB, free: 18.72 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.464e-05/0.3331, allocations: 106.2 kB / 372.6 MB, free: 18.62 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.497e-05/0.3331, allocations: 2.406 kB / 372.6 MB, free: 18.62 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002039/0.3333, allocations: 26.05 kB / 372.7 MB, free: 18.62 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.722e-05/0.3334, allocations: 9.844 kB / 372.7 MB, free: 18.62 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.286e-05/0.3334, allocations: 9.406 kB / 372.7 MB, free: 18.62 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002067/0.3336, allocations: 193.4 kB / 372.9 MB, free: 18.54 MB / 302.1 MB Notification: Performance of sort global known variables: time 2e-07/0.3336, allocations: 0.5625 kB / 372.9 MB, free: 18.54 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004782/0.3341, allocations: 81.91 kB / 372.9 MB, free: 18.53 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 2 (inductor_e.i,converter_m.Phi.re) * 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 (17): * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0007076/0.3348, allocations: 0.9779 MB / 373.9 MB, free: 17.78 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0004151/0.3353, allocations: 195.3 kB / 374.1 MB, free: 17.77 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.475e-06/0.3353, allocations: 0.9375 kB / 374.1 MB, free: 17.77 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001427/0.3354, allocations: 82.52 kB / 374.2 MB, free: 17.77 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004261/0.3358, allocations: 31.56 kB / 374.2 MB, free: 17.76 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002721/0.3386, allocations: 1.8 MB / 376 MB, free: 16.85 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000262/0.3389, allocations: 0.7727 MB / 376.8 MB, free: 16.14 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001495/0.339, allocations: 32.12 kB / 376.8 MB, free: 16.14 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001679/0.3392, allocations: 103.4 kB / 376.9 MB, free: 16.13 MB / 302.1 MB Notification: Performance of SimCode: time 1.173e-06/0.3392, allocations: 1.406 kB / 376.9 MB, free: 16.13 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01745/0.3566, allocations: 4.927 MB / 381.9 MB, free: 15.75 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001753/0.3569, allocations: 226.2 kB / 382.1 MB, free: 15.5 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.013/2.37, allocations: 0 / 382.1 MB, free: 15.5 MB / 302.1 MB (rm -f Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.Components.SinglePhaseInductance.pipe ; mkfifo Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.Components.SinglePhaseInductance.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.Components.SinglePhaseInductance.pipe >> ../files/Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.Components.SinglePhaseInductance.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.Components.SinglePhaseInductance_res.mat --tempDir=temp_Modelica_trunk_Modelica_Magnetic_FundamentalWave_Examples_Components_SinglePhaseInductance_fmu --startTime=0 --stopTime=100 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Magnetic_FundamentalWave_Examples_Components_SinglePhaseInductance.fmu > Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.Components.SinglePhaseInductance.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.Components.SinglePhaseInductance_res.mat does not exist to compare? outputFormat=mat