Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.Components.SinglePhaseInductance.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.Components.SinglePhaseInductance,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Magnetic_FundamentalWave_Examples_Components_SinglePhaseInductance",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.Components.SinglePhaseInductance,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Magnetic_FundamentalWave_Examples_Components_SinglePhaseInductance",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002392/0.002391, allocations: 186.7 kB / 16.4 MB, free: 5.625 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.316/2.316, allocations: 205.4 MB / 222.5 MB, free: 13.77 MB / 186.8 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001186/0.001186, allocations: 98.86 kB / 270.9 MB, free: 13.29 MB / 234.8 MB Notification: Performance of FrontEnd - loaded program: time 0.0005306/0.0005308, allocations: 8 kB / 327.1 MB, free: 15 MB / 234.8 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09451/0.09508, allocations: 47.59 MB / 374.6 MB, free: 15.34 MB / 282.8 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.Components.SinglePhaseInductance): time 0.004725/0.09985, allocations: 2.598 MB / 377.2 MB, free: 12.72 MB / 282.8 MB Notification: Performance of NFInst.instExpressions: time 0.003117/0.103, allocations: 1.228 MB / 378.5 MB, free: 11.48 MB / 282.8 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002817/0.1033, allocations: 11.94 kB / 378.5 MB, free: 11.47 MB / 282.8 MB Notification: Performance of NFTyping.typeComponents: time 0.000466/0.1038, allocations: 103.4 kB / 378.6 MB, free: 11.37 MB / 282.8 MB Notification: Performance of NFTyping.typeBindings: time 0.001246/0.1051, allocations: 326.9 kB / 378.9 MB, free: 11.05 MB / 282.8 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007147/0.1058, allocations: 199.5 kB / 379.1 MB, free: 10.85 MB / 282.8 MB Notification: Performance of NFFlatten.flatten: time 0.0007976/0.1066, allocations: 307.3 kB / 379.4 MB, free: 10.55 MB / 282.8 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003034/0.107, allocations: 123.1 kB / 379.5 MB, free: 10.43 MB / 282.8 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002843/0.1073, allocations: 139.5 kB / 379.7 MB, free: 10.29 MB / 282.8 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00034/0.1076, allocations: 171.2 kB / 379.8 MB, free: 10.12 MB / 282.8 MB Notification: Performance of NFPackage.collectConstants: time 5.976e-05/0.1077, allocations: 20 kB / 379.8 MB, free: 10.11 MB / 282.8 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004713/0.1082, allocations: 119.9 kB / 380 MB, free: 9.988 MB / 282.8 MB Notification: Performance of NFScalarize.scalarize: time 8.322e-05/0.1083, allocations: 67.69 kB / 380 MB, free: 9.922 MB / 282.8 MB Notification: Performance of NFVerifyModel.verify: time 0.0001101/0.1084, allocations: 89.52 kB / 380.1 MB, free: 9.828 MB / 282.8 MB Notification: Performance of NFConvertDAE.convert: time 0.000699/0.1091, allocations: 387.1 kB / 380.5 MB, free: 9.449 MB / 282.8 MB Notification: Performance of FrontEnd - DAE generated: time 3.025e-06/0.1091, allocations: 0 / 380.5 MB, free: 9.449 MB / 282.8 MB Notification: Performance of FrontEnd: time 4.589e-06/0.1091, allocations: 3.984 kB / 380.5 MB, free: 9.445 MB / 282.8 MB Notification: Performance of Transformations before backend: time 7.183e-06/0.1092, allocations: 4 kB / 380.5 MB, free: 9.441 MB / 282.8 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.001971/0.1111, allocations: 0.6863 MB / 381.2 MB, free: 8.703 MB / 282.8 MB Notification: Performance of prepare preOptimizeDAE: time 5.069e-05/0.1112, allocations: 8.031 kB / 381.2 MB, free: 8.695 MB / 282.8 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001304/0.1113, allocations: 74.53 kB / 381.3 MB, free: 8.613 MB / 282.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008942/0.1122, allocations: 95.45 kB / 381.4 MB, free: 8.52 MB / 282.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005931/0.1129, allocations: 307.2 kB / 381.7 MB, free: 8.18 MB / 282.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.916e-05/0.1129, allocations: 21 kB / 381.7 MB, free: 8.16 MB / 282.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.454e-05/0.113, allocations: 36 kB / 381.7 MB, free: 8.125 MB / 282.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009524/0.114, allocations: 349.3 kB / 382.1 MB, free: 7.773 MB / 282.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.994e-05/0.114, allocations: 3.938 kB / 382.1 MB, free: 7.77 MB / 282.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.475e-05/0.1141, allocations: 16 kB / 382.1 MB, free: 7.754 MB / 282.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.463e-05/0.1141, allocations: 8 kB / 382.1 MB, free: 7.746 MB / 282.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008675/0.115, allocations: 254.1 kB / 382.3 MB, free: 7.496 MB / 282.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003211/0.1182, allocations: 1.327 MB / 383.7 MB, free: 6.066 MB / 282.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006839/0.1189, allocations: 205.1 kB / 383.9 MB, free: 5.848 MB / 282.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001239/0.1202, allocations: 0.8635 MB / 384.7 MB, free: 4.883 MB / 282.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.313e-05/0.1203, allocations: 42.55 kB / 384.8 MB, free: 4.832 MB / 282.8 MB Notification: Performance of pre-optimization done (n=17): time 2.525e-06/0.1203, allocations: 4 kB / 384.8 MB, free: 4.828 MB / 282.8 MB Notification: Performance of matching and sorting (n=17): time 0.0008908/0.1212, allocations: 229.3 kB / 385 MB, free: 4.598 MB / 282.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.196e-05/0.1213, allocations: 81.11 kB / 385.1 MB, free: 4.5 MB / 282.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004609/0.1217, allocations: 290.9 kB / 385.4 MB, free: 4.211 MB / 282.8 MB Notification: Performance of collectPreVariables (initialization): time 3.257e-05/0.1218, allocations: 25.7 kB / 385.4 MB, free: 4.18 MB / 282.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002261/0.122, allocations: 293.9 kB / 385.7 MB, free: 3.891 MB / 282.8 MB Notification: Performance of collectInitialBindings (initialization): time 7.602e-05/0.1221, allocations: 67.09 kB / 385.7 MB, free: 3.824 MB / 282.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.893e-05/0.1221, allocations: 4 kB / 385.7 MB, free: 3.82 MB / 282.8 MB Notification: Performance of setup shared object (initialization): time 0.0001554/0.1223, allocations: 326.8 kB / 386.1 MB, free: 3.492 MB / 282.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003083/0.1226, allocations: 72.61 kB / 386.1 MB, free: 3.418 MB / 282.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003731/0.123, allocations: 202.4 kB / 386.3 MB, free: 3.16 MB / 282.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000345/0.1234, allocations: 99.92 kB / 386.4 MB, free: 3.062 MB / 282.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.94e-06/0.1234, allocations: 0 / 386.4 MB, free: 3.062 MB / 282.8 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0008943/0.1243, allocations: 305.5 kB / 386.7 MB, free: 2.758 MB / 282.8 MB Notification: Performance of prepare postOptimizeDAE: time 2.443e-05/0.1243, allocations: 12 kB / 386.7 MB, free: 2.746 MB / 282.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.289e-05/0.1244, allocations: 4.25 kB / 386.7 MB, free: 2.742 MB / 282.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.535e-05/0.1244, allocations: 8 kB / 386.7 MB, free: 2.734 MB / 282.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00054/0.1249, allocations: 87.83 kB / 386.8 MB, free: 2.648 MB / 282.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.763e-05/0.125, allocations: 7.938 kB / 386.8 MB, free: 2.641 MB / 282.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003561/0.1253, allocations: 51.56 kB / 386.9 MB, free: 2.59 MB / 282.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.431e-05/0.1254, allocations: 12 kB / 386.9 MB, free: 2.578 MB / 282.8 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.000231/0.1256, allocations: 153.8 kB / 387 MB, free: 2.418 MB / 282.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.184e-05/0.1257, allocations: 27.72 kB / 387.1 MB, free: 2.391 MB / 282.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.019e-05/0.1258, allocations: 25.73 kB / 387.1 MB, free: 2.363 MB / 282.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.071e-06/0.1258, allocations: 11.92 kB / 387.1 MB, free: 2.352 MB / 282.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.104e-06/0.1259, allocations: 0 / 387.1 MB, free: 2.352 MB / 282.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.099e-06/0.1259, allocations: 0 / 387.1 MB, free: 2.352 MB / 282.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001086/0.127, allocations: 0.5224 MB / 387.6 MB, free: 1.77 MB / 282.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.443e-06/0.127, allocations: 0 / 387.6 MB, free: 1.77 MB / 282.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004138/0.1274, allocations: 47.92 kB / 387.7 MB, free: 1.723 MB / 282.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.828e-06/0.1274, allocations: 4 kB / 387.7 MB, free: 1.719 MB / 282.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.291e-05/0.1275, allocations: 3.984 kB / 387.7 MB, free: 1.715 MB / 282.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.887e-06/0.1275, allocations: 0 / 387.7 MB, free: 1.715 MB / 282.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.742e-06/0.1275, allocations: 7.953 kB / 387.7 MB, free: 1.707 MB / 282.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009159/0.1284, allocations: 458.5 kB / 388.1 MB, free: 1.227 MB / 282.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001222/0.1286, allocations: 108.8 kB / 388.3 MB, free: 1.102 MB / 282.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.762e-05/0.1286, allocations: 3.984 kB / 388.3 MB, free: 1.098 MB / 282.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003413/0.129, allocations: 16 kB / 388.3 MB, free: 1.082 MB / 282.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.862e-05/0.1291, allocations: 7.984 kB / 388.3 MB, free: 1.074 MB / 282.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.654e-05/0.1291, allocations: 16.05 kB / 388.3 MB, free: 1.059 MB / 282.8 MB Notification: Performance of sorting global known variables: time 0.0002907/0.1294, allocations: 194 kB / 388.5 MB, free: 0.8711 MB / 282.8 MB Notification: Performance of sort global known variables: time 3.81e-07/0.1294, allocations: 0 / 388.5 MB, free: 0.8711 MB / 282.8 MB Notification: Performance of remove unused functions: time 0.0006336/0.1301, allocations: 83.75 kB / 388.6 MB, free: 0.7891 MB / 282.8 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.2569/0.387, allocations: 1.121 MB / 389.7 MB, free: 19.98 MB / 282.8 MB Notification: Performance of simCode: created initialization part: time 0.0007306/0.3878, allocations: 194.9 kB / 389.9 MB, free: 19.98 MB / 282.8 MB Notification: Performance of simCode: created event and clocks part: time 5.24e-06/0.3878, allocations: 0 / 389.9 MB, free: 19.98 MB / 282.8 MB Notification: Performance of simCode: created simulation system equations: time 0.0002681/0.3881, allocations: 78.8 kB / 390 MB, free: 19.98 MB / 282.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004802/0.3886, allocations: 29.7 kB / 390 MB, free: 19.97 MB / 282.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004505/0.3931, allocations: 4.692 MB / 394.7 MB, free: 16.24 MB / 282.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003116/0.3935, allocations: 0.7849 MB / 395.5 MB, free: 15.54 MB / 282.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002814/0.3938, allocations: 110.5 kB / 395.6 MB, free: 15.53 MB / 282.8 MB Notification: Performance of SimCode: time 1.322e-06/0.3938, allocations: 0 / 395.6 MB, free: 15.53 MB / 282.8 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.469/2.863, allocations: 4.806 MB / 400.4 MB, free: 15.14 MB / 282.8 MB (rm -f Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.Components.SinglePhaseInductance.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.Components.SinglePhaseInductance.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.Components.SinglePhaseInductance.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.Components.SinglePhaseInductance.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.Components.SinglePhaseInductance_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Magnetic_FundamentalWave_Examples_Components_SinglePhaseInductance_fmu --startTime=0 --stopTime=100 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Magnetic_FundamentalWave_Examples_Components_SinglePhaseInductance.fmu > Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.Components.SinglePhaseInductance.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.Components.SinglePhaseInductance_res.mat does not exist to compare? outputFormat=mat