Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.Components.SinglePhaseInductance.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.FundamentalWave.Examples.Components.SinglePhaseInductance,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_FundamentalWave_Examples_Components_SinglePhaseInductance",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.Components.SinglePhaseInductance,fileNamePrefix="Modelica_4_0_0_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 4.0.0+maint.om/package.mo): time 0.001172/0.001172, allocations: 89.39 kB / 16.32 MB, free: 6.449 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.001824/0.001824, allocations: 180.2 kB / 17.21 MB, free: 6.32 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.364/1.364, allocations: 223.2 MB / 241.2 MB, free: 304 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002886/0.0002889, allocations: 4 kB / 300.9 MB, free: 6.355 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1069/0.1072, allocations: 50.4 MB / 351.3 MB, free: 3.934 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.Components.SinglePhaseInductance): time 0.003636/0.1109, allocations: 2.773 MB / 354.1 MB, free: 1.145 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.002324/0.1133, allocations: 1.2 MB / 355.3 MB, free: 15.93 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002094/0.1135, allocations: 8 kB / 355.3 MB, free: 15.93 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000417/0.114, allocations: 103.4 kB / 355.4 MB, free: 15.82 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009261/0.1149, allocations: 378.3 kB / 355.8 MB, free: 15.45 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003072/0.1152, allocations: 123.8 kB / 355.9 MB, free: 15.33 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005445/0.1158, allocations: 406.2 kB / 356.3 MB, free: 14.93 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002175/0.116, allocations: 115.4 kB / 356.4 MB, free: 14.82 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001782/0.1162, allocations: 139.4 kB / 356.6 MB, free: 14.68 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002455/0.1164, allocations: 175.2 kB / 356.7 MB, free: 14.51 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 3.883e-05/0.1165, allocations: 19.94 kB / 356.7 MB, free: 14.49 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002898/0.1168, allocations: 135.9 kB / 356.9 MB, free: 14.36 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 6.192e-05/0.1168, allocations: 59.7 kB / 356.9 MB, free: 14.3 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 7.762e-05/0.1169, allocations: 97.52 kB / 357 MB, free: 14.2 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004394/0.1174, allocations: 402.7 kB / 357.4 MB, free: 13.8 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.23e-06/0.1174, allocations: 0 / 357.4 MB, free: 13.8 MB / 302.1 MB Notification: Performance of FrontEnd: time 3.306e-06/0.1174, allocations: 0 / 357.4 MB, free: 13.8 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.084e-05/0.1174, allocations: 0 / 357.4 MB, free: 13.8 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.001326/0.1187, allocations: 0.6901 MB / 358.1 MB, free: 13.06 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.611e-05/0.1188, allocations: 12.03 kB / 358.1 MB, free: 13.05 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.891e-05/0.1189, allocations: 70.48 kB / 358.2 MB, free: 12.97 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005548/0.1195, allocations: 95.47 kB / 358.3 MB, free: 12.88 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003783/0.1198, allocations: 295.3 kB / 358.6 MB, free: 12.55 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.939e-05/0.1199, allocations: 33 kB / 358.6 MB, free: 12.52 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.43e-05/0.1199, allocations: 32 kB / 358.6 MB, free: 12.49 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005581/0.1205, allocations: 349.3 kB / 359 MB, free: 12.14 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.208e-05/0.1205, allocations: 3.938 kB / 359 MB, free: 12.13 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.173e-05/0.1206, allocations: 16 kB / 359 MB, free: 12.12 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.081e-05/0.1206, allocations: 11.95 kB / 359 MB, free: 12.11 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004476/0.121, allocations: 257.4 kB / 359.3 MB, free: 11.86 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001927/0.123, allocations: 1.331 MB / 360.6 MB, free: 10.43 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003725/0.1234, allocations: 193.2 kB / 360.8 MB, free: 10.22 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001659/0.1235, allocations: 93.67 kB / 360.9 MB, free: 10.12 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0008487/0.1244, allocations: 0.8791 MB / 361.8 MB, free: 9.141 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.824e-05/0.1244, allocations: 38.56 kB / 361.8 MB, free: 9.094 MB / 302.1 MB Notification: Performance of pre-optimization done (n=17): time 1.934e-06/0.1244, allocations: 3.938 kB / 361.8 MB, free: 9.09 MB / 302.1 MB Notification: Performance of matching and sorting (n=17): time 0.0005402/0.125, allocations: 225.2 kB / 362 MB, free: 8.863 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.983e-05/0.1251, allocations: 92.97 kB / 362.1 MB, free: 8.754 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002777/0.1253, allocations: 271 kB / 362.4 MB, free: 8.484 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.035e-05/0.1254, allocations: 29.7 kB / 362.4 MB, free: 8.449 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001515/0.1255, allocations: 251.4 kB / 362.6 MB, free: 8.199 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.275e-05/0.1256, allocations: 63.19 kB / 362.7 MB, free: 8.137 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.188e-05/0.1256, allocations: 4 kB / 362.7 MB, free: 8.133 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001506/0.1258, allocations: 338.8 kB / 363 MB, free: 7.793 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001491/0.1259, allocations: 68.62 kB / 363.1 MB, free: 7.723 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002131/0.1261, allocations: 202.4 kB / 363.3 MB, free: 7.465 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001845/0.1263, allocations: 103.3 kB / 363.4 MB, free: 7.367 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.519e-06/0.1263, allocations: 3.953 kB / 363.4 MB, free: 7.363 MB / 302.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0004995/0.1268, allocations: 328.8 kB / 363.7 MB, free: 7.035 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.821e-05/0.1269, allocations: 8 kB / 363.7 MB, free: 7.027 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.007e-06/0.1269, allocations: 4.562 kB / 363.7 MB, free: 7.023 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.183e-05/0.1269, allocations: 12 kB / 363.8 MB, free: 7.012 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002666/0.1272, allocations: 83.78 kB / 363.8 MB, free: 6.93 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.345e-05/0.1272, allocations: 11.98 kB / 363.8 MB, free: 6.918 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001794/0.1274, allocations: 35.69 kB / 363.9 MB, free: 6.883 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.707e-05/0.1274, allocations: 16 kB / 363.9 MB, free: 6.867 MB / 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.0001508/0.1276, allocations: 153.7 kB / 364 MB, free: 6.707 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.444e-05/0.1277, allocations: 35.66 kB / 364.1 MB, free: 6.672 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.039e-05/0.1277, allocations: 29.75 kB / 364.1 MB, free: 6.645 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.065e-06/0.1277, allocations: 7.984 kB / 364.1 MB, free: 6.637 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.002e-06/0.1277, allocations: 0 / 364.1 MB, free: 6.637 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.318e-06/0.1278, allocations: 0 / 364.1 MB, free: 6.637 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007688/0.1285, allocations: 0.5147 MB / 364.6 MB, free: 6.062 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.364e-06/0.1285, allocations: 4.031 kB / 364.6 MB, free: 6.059 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002055/0.1288, allocations: 43.97 kB / 364.7 MB, free: 6.016 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.398e-06/0.1288, allocations: 0 / 364.7 MB, free: 6.016 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.835e-05/0.1288, allocations: 8 kB / 364.7 MB, free: 6.008 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.026e-06/0.1288, allocations: 0 / 364.7 MB, free: 6.008 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.613e-06/0.1288, allocations: 0 / 364.7 MB, free: 6.008 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005371/0.1293, allocations: 441.7 kB / 365.1 MB, free: 5.559 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.434e-05/0.1294, allocations: 108.8 kB / 365.2 MB, free: 5.434 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.484e-05/0.1295, allocations: 4.312 kB / 365.2 MB, free: 5.43 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002137/0.1297, allocations: 24.05 kB / 365.3 MB, free: 5.406 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.49e-05/0.1297, allocations: 7.984 kB / 365.3 MB, free: 5.398 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.459e-05/0.1298, allocations: 12 kB / 365.3 MB, free: 5.387 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001814/0.13, allocations: 194 kB / 365.5 MB, free: 5.195 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.5e-07/0.13, allocations: 0 / 365.5 MB, free: 5.195 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004382/0.1304, allocations: 79.75 kB / 365.5 MB, free: 5.117 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.0008232/0.1312, allocations: 0.9816 MB / 366.5 MB, free: 4.102 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003896/0.1316, allocations: 193.9 kB / 366.7 MB, free: 3.914 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 4.097e-06/0.1316, allocations: 4 kB / 366.7 MB, free: 3.91 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001323/0.1318, allocations: 73.09 kB / 366.8 MB, free: 3.84 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000432/0.1322, allocations: 24.89 kB / 366.8 MB, free: 3.816 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002444/0.1347, allocations: 1.805 MB / 368.6 MB, free: 1.895 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002923/0.135, allocations: 0.7794 MB / 369.4 MB, free: 1.09 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001345/0.1351, allocations: 38.89 kB / 369.4 MB, free: 1.051 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001384/0.1353, allocations: 103.4 kB / 369.5 MB, free: 0.9492 MB / 302.1 MB Notification: Performance of SimCode: time 2.61e-07/0.1353, allocations: 0 / 369.5 MB, free: 0.9492 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1794/0.3147, allocations: 4.917 MB / 374.5 MB, free: 23.47 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001547/0.3149, allocations: 220.3 kB / 374.7 MB, free: 23.23 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.818/2.133, allocations: 4.812 kB / 374.7 MB, free: 23.23 MB / 302.1 MB (rm -f Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.Components.SinglePhaseInductance.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.Components.SinglePhaseInductance.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.Components.SinglePhaseInductance.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.Components.SinglePhaseInductance.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.Components.SinglePhaseInductance_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Magnetic_FundamentalWave_Examples_Components_SinglePhaseInductance_fmu --startTime=0 --stopTime=100 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Magnetic_FundamentalWave_Examples_Components_SinglePhaseInductance.fmu > Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.Components.SinglePhaseInductance.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.Components.SinglePhaseInductance_res.mat does not exist to compare? outputFormat=mat