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.001195/0.001195, allocations: 101.8 kB / 16.99 MB, free: 5.941 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001616/0.001616, allocations: 206.1 kB / 17.9 MB, free: 5.594 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.328/1.328, allocations: 227.3 MB / 245.9 MB, free: 10.3 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002275/0.0002276, allocations: 4 kB / 306.7 MB, free: 1.246 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.105/0.1052, allocations: 51.5 MB / 358.2 MB, free: 13.74 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.Components.SinglePhaseInductance): time 0.002986/0.1082, allocations: 2.654 MB / 360.9 MB, free: 11.07 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002012/0.1103, allocations: 1.255 MB / 362.1 MB, free: 9.812 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001837/0.1105, allocations: 11.94 kB / 362.1 MB, free: 9.801 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000331/0.1108, allocations: 99.44 kB / 362.2 MB, free: 9.703 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008549/0.1117, allocations: 374.7 kB / 362.6 MB, free: 9.336 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003107/0.112, allocations: 127.7 kB / 362.7 MB, free: 9.211 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005242/0.1125, allocations: 307.4 kB / 363 MB, free: 8.91 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002611/0.1128, allocations: 131.1 kB / 363.2 MB, free: 8.777 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001818/0.113, allocations: 139.5 kB / 363.3 MB, free: 8.641 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002495/0.1132, allocations: 171.3 kB / 363.5 MB, free: 8.473 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 3.977e-05/0.1133, allocations: 19.94 kB / 363.5 MB, free: 8.453 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002767/0.1136, allocations: 135.8 kB / 363.6 MB, free: 8.32 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 5.667e-05/0.1136, allocations: 59.75 kB / 363.7 MB, free: 8.262 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 7.793e-05/0.1137, allocations: 97.52 kB / 363.8 MB, free: 8.16 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003964/0.1141, allocations: 391.2 kB / 364.1 MB, free: 7.777 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.607e-06/0.1141, allocations: 0 / 364.1 MB, free: 7.777 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.643e-06/0.1142, allocations: 0 / 364.1 MB, free: 7.777 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.901e-06/0.1142, allocations: 0 / 364.1 MB, free: 7.777 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.001285/0.1155, allocations: 0.694 MB / 364.8 MB, free: 7.031 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.982e-05/0.1155, allocations: 8.031 kB / 364.8 MB, free: 7.023 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.035e-05/0.1156, allocations: 70.53 kB / 364.9 MB, free: 6.945 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007079/0.1163, allocations: 123.4 kB / 365 MB, free: 6.824 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003517/0.1167, allocations: 299.3 kB / 365.3 MB, free: 6.492 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.219e-05/0.1167, allocations: 24.94 kB / 365.4 MB, free: 6.469 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.99e-05/0.1168, allocations: 39.95 kB / 365.4 MB, free: 6.43 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005315/0.1173, allocations: 345.3 kB / 365.7 MB, free: 6.082 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.099e-05/0.1173, allocations: 0 / 365.7 MB, free: 6.082 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.481e-05/0.1174, allocations: 20 kB / 365.7 MB, free: 6.062 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.167e-06/0.1174, allocations: 8 kB / 365.8 MB, free: 6.055 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004544/0.1178, allocations: 257.9 kB / 366 MB, free: 5.801 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001835/0.1197, allocations: 1.323 MB / 367.3 MB, free: 4.383 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003428/0.12, allocations: 196.9 kB / 367.5 MB, free: 4.176 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0008584/0.1209, allocations: 1.215 MB / 368.7 MB, free: 2.785 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.476e-05/0.1209, allocations: 34.56 kB / 368.8 MB, free: 2.742 MB / 302.1 MB Notification: Performance of pre-optimization done (n=17): time 1.102e-06/0.1209, allocations: 0 / 368.8 MB, free: 2.742 MB / 302.1 MB Notification: Performance of matching and sorting (n=17): time 0.0005166/0.1215, allocations: 233.2 kB / 369 MB, free: 2.508 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.036e-05/0.1215, allocations: 85.05 kB / 369.1 MB, free: 2.406 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002524/0.1218, allocations: 275 kB / 369.3 MB, free: 2.129 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.057e-05/0.1218, allocations: 29.7 kB / 369.4 MB, free: 2.094 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001251/0.1219, allocations: 243.4 kB / 369.6 MB, free: 1.852 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.216e-05/0.122, allocations: 71.17 kB / 369.7 MB, free: 1.781 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.123e-05/0.122, allocations: 4 kB / 369.7 MB, free: 1.777 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001068/0.1221, allocations: 338.8 kB / 370 MB, free: 1.438 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001428/0.1223, allocations: 68.62 kB / 370.1 MB, free: 1.367 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002222/0.1225, allocations: 206.3 kB / 370.3 MB, free: 1.105 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000183/0.1227, allocations: 99.92 kB / 370.4 MB, free: 1.008 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.836e-06/0.1227, allocations: 0 / 370.4 MB, free: 1.008 MB / 302.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.000485/0.1232, allocations: 320.8 kB / 370.7 MB, free: 0.6875 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.872e-05/0.1232, allocations: 8 kB / 370.7 MB, free: 0.6797 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.919e-06/0.1232, allocations: 4 kB / 370.7 MB, free: 0.6758 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.619e-05/0.1232, allocations: 12.5 kB / 370.7 MB, free: 0.6641 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002652/0.1235, allocations: 87.89 kB / 370.8 MB, free: 0.5781 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.728e-06/0.1235, allocations: 4 kB / 370.8 MB, free: 0.5742 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001837/0.1237, allocations: 35.94 kB / 370.8 MB, free: 0.5391 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.401e-05/0.1238, allocations: 19.98 kB / 370.9 MB, free: 0.5195 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.0001358/0.1239, allocations: 165.6 kB / 371 MB, free: 356 kB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.12e-05/0.124, allocations: 23.72 kB / 371.1 MB, free: 332 kB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.485e-05/0.124, allocations: 33.73 kB / 371.1 MB, free: 292 kB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.655e-06/0.124, allocations: 0 / 371.1 MB, free: 292 kB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.109e-06/0.124, allocations: 0 / 371.1 MB, free: 292 kB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.03e-06/0.1241, allocations: 4 kB / 371.1 MB, free: 288 kB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1855/0.3096, allocations: 0.5037 MB / 371.6 MB, free: 18.9 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.13e-06/0.3096, allocations: 0.9062 kB / 371.6 MB, free: 18.9 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002441/0.3099, allocations: 47.7 kB / 371.6 MB, free: 18.9 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.924e-06/0.3099, allocations: 1.75 kB / 371.6 MB, free: 18.9 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.825e-05/0.3099, allocations: 5.094 kB / 371.6 MB, free: 18.9 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.493e-06/0.3099, allocations: 7.859 kB / 371.7 MB, free: 18.9 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.675e-06/0.3099, allocations: 1.344 kB / 371.7 MB, free: 18.9 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000611/0.3106, allocations: 460.7 kB / 372.1 MB, free: 18.66 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.581e-05/0.3106, allocations: 108.1 kB / 372.2 MB, free: 18.57 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.004e-05/0.3107, allocations: 6.562 kB / 372.2 MB, free: 18.57 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002169/0.3109, allocations: 20.39 kB / 372.2 MB, free: 18.57 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.578e-05/0.311, allocations: 10.12 kB / 372.2 MB, free: 18.57 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.446e-05/0.311, allocations: 8.875 kB / 372.3 MB, free: 18.57 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001868/0.3112, allocations: 199.1 kB / 372.5 MB, free: 18.48 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3112, allocations: 0 / 372.5 MB, free: 18.48 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004979/0.3117, allocations: 84.11 kB / 372.5 MB, free: 18.47 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.0007533/0.3124, allocations: 1.135 MB / 373.7 MB, free: 17.55 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0004235/0.3129, allocations: 192.5 kB / 373.9 MB, free: 17.55 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.226e-06/0.3129, allocations: 3.062 kB / 373.9 MB, free: 17.55 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001484/0.313, allocations: 72.73 kB / 373.9 MB, free: 17.55 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002955/0.3134, allocations: 27.97 kB / 374 MB, free: 17.54 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003297/0.3167, allocations: 4.666 MB / 378.6 MB, free: 13.77 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003388/0.317, allocations: 0.7804 MB / 379.4 MB, free: 13.07 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001726/0.3172, allocations: 38.45 kB / 379.4 MB, free: 13.06 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001776/0.3174, allocations: 104.5 kB / 379.5 MB, free: 13.05 MB / 302.1 MB Notification: Performance of SimCode: time 8.01e-07/0.3174, allocations: 0 / 379.5 MB, free: 13.05 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01892/0.3363, allocations: 4.908 MB / 384.5 MB, free: 12.68 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002536/0.3366, allocations: 208.5 kB / 384.7 MB, free: 12.45 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.859/2.196, allocations: 1.656 kB / 384.7 MB, free: 12.45 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