Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ParallelResonance.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.Electrical.Analog.Examples.ParallelResonance,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_ParallelResonance",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.ParallelResonance,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_ParallelResonance",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.001139/0.001139, allocations: 88.53 kB / 16.31 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.0008606/0.0008605, allocations: 183.1 kB / 17.21 MB, free: 6.316 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.51/1.51, allocations: 223.3 MB / 241.2 MB, free: 5.297 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002616/0.0002616, allocations: 11.09 kB / 300.9 MB, free: 5.586 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1107/0.111, allocations: 50.43 MB / 351.3 MB, free: 11.41 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ParallelResonance): time 0.004155/0.1152, allocations: 2.44 MB / 353.8 MB, free: 8.961 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001208/0.1164, allocations: 0.643 MB / 354.4 MB, free: 8.312 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003771/0.1168, allocations: 4 kB / 354.4 MB, free: 8.309 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002459/0.1171, allocations: 47.62 kB / 354.5 MB, free: 8.262 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002803/0.1174, allocations: 71.38 kB / 354.5 MB, free: 8.191 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003688/0.1177, allocations: 71.92 kB / 354.6 MB, free: 8.121 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004618/0.1182, allocations: 342.9 kB / 355 MB, free: 7.785 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000252/0.1185, allocations: 128.7 kB / 355.1 MB, free: 7.645 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002675/0.1187, allocations: 111.6 kB / 355.2 MB, free: 7.535 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001753/0.1189, allocations: 131.4 kB / 355.3 MB, free: 7.406 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 4.22e-05/0.119, allocations: 16 kB / 355.3 MB, free: 7.391 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.546e-05/0.119, allocations: 20 kB / 355.3 MB, free: 7.371 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 4.432e-05/0.1191, allocations: 51.78 kB / 355.4 MB, free: 7.32 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 7.459e-05/0.1192, allocations: 81.58 kB / 355.5 MB, free: 7.234 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000273/0.1195, allocations: 271.2 kB / 355.7 MB, free: 6.969 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.809e-06/0.1195, allocations: 0 / 355.7 MB, free: 6.969 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.272e-06/0.1195, allocations: 4 kB / 355.7 MB, free: 6.965 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.358e-05/0.1195, allocations: 0 / 355.7 MB, free: 6.965 MB / 286.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 79 * Number of variables: 79 Notification: Performance of Generate backend data structure: time 0.0009362/0.1204, allocations: 0.573 MB / 356.3 MB, free: 6.344 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.073e-05/0.1205, allocations: 12.03 kB / 356.3 MB, free: 6.332 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.539e-05/0.1206, allocations: 70.47 kB / 356.4 MB, free: 6.254 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.77e-05/0.1207, allocations: 43.52 kB / 356.4 MB, free: 6.211 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000296/0.121, allocations: 258.4 kB / 356.7 MB, free: 5.918 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.183e-05/0.121, allocations: 24.66 kB / 356.7 MB, free: 5.895 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.877e-05/0.1211, allocations: 32 kB / 356.8 MB, free: 5.863 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005385/0.1216, allocations: 286 kB / 357 MB, free: 5.582 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.127e-05/0.1216, allocations: 0 / 357 MB, free: 5.582 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.801e-05/0.1217, allocations: 12 kB / 357 MB, free: 5.57 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.047e-05/0.1217, allocations: 11.95 kB / 357.1 MB, free: 5.559 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007801/0.1225, allocations: 226.5 kB / 357.3 MB, free: 5.336 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001573/0.124, allocations: 1.03 MB / 358.3 MB, free: 4.23 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002974/0.1244, allocations: 162.6 kB / 358.5 MB, free: 4.062 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000254/0.1246, allocations: 136.7 kB / 358.6 MB, free: 3.926 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.16e-05/0.1247, allocations: 4 kB / 358.6 MB, free: 3.922 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.364e-05/0.1247, allocations: 38.55 kB / 358.6 MB, free: 3.875 MB / 286.1 MB Notification: Performance of pre-optimization done (n=19): time 1.593e-06/0.1247, allocations: 0 / 358.6 MB, free: 3.875 MB / 286.1 MB Notification: Performance of matching and sorting (n=19): time 0.000519/0.1252, allocations: 240.2 kB / 358.9 MB, free: 3.637 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.393e-05/0.1253, allocations: 55.36 kB / 358.9 MB, free: 3.57 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000191/0.1255, allocations: 219.1 kB / 359.1 MB, free: 3.344 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 2.141e-05/0.1255, allocations: 37.69 kB / 359.2 MB, free: 3.301 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001274/0.1256, allocations: 188 kB / 359.4 MB, free: 3.113 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.804e-05/0.1257, allocations: 71 kB / 359.4 MB, free: 3.043 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.657e-05/0.1258, allocations: 4 kB / 359.4 MB, free: 3.039 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001493/0.1259, allocations: 330.8 kB / 359.8 MB, free: 2.707 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001886/0.1261, allocations: 76.47 kB / 359.8 MB, free: 2.629 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002008/0.1263, allocations: 162.4 kB / 360 MB, free: 2.438 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001793/0.1265, allocations: 83.98 kB / 360.1 MB, free: 2.355 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.457e-06/0.1265, allocations: 0 / 360.1 MB, free: 2.355 MB / 286.1 MB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0004787/0.127, allocations: 285.1 kB / 360.4 MB, free: 2.07 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.775e-05/0.127, allocations: 6.188 kB / 360.4 MB, free: 2.066 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.053e-06/0.1271, allocations: 4 kB / 360.4 MB, free: 2.062 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.471e-05/0.1271, allocations: 4 kB / 360.4 MB, free: 2.059 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002803/0.1274, allocations: 71.91 kB / 360.4 MB, free: 1.988 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.174e-05/0.1274, allocations: 11.89 kB / 360.4 MB, free: 1.977 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001539/0.1275, allocations: 39.83 kB / 360.5 MB, free: 1.938 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.791e-05/0.1276, allocations: 12 kB / 360.5 MB, free: 1.926 MB / 286.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 11 * 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 (33): * Single equations (assignments): 33 * 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.0001193/0.1277, allocations: 137.8 kB / 360.6 MB, free: 1.781 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.563e-05/0.1277, allocations: 23.72 kB / 360.7 MB, free: 1.758 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003918/0.1281, allocations: 213.3 kB / 360.9 MB, free: 1.551 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.41e-06/0.1282, allocations: 4 kB / 360.9 MB, free: 1.547 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.969e-06/0.1282, allocations: 0 / 360.9 MB, free: 1.547 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.641e-06/0.1282, allocations: 3.953 kB / 360.9 MB, free: 1.543 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008134/0.129, allocations: 0.6169 MB / 361.5 MB, free: 0.8633 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.895e-06/0.129, allocations: 0 / 361.5 MB, free: 0.8633 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002689/0.1293, allocations: 63.89 kB / 361.6 MB, free: 0.8008 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.038e-06/0.1293, allocations: 4 kB / 361.6 MB, free: 0.7969 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.802e-05/0.1293, allocations: 4 kB / 361.6 MB, free: 0.793 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.815e-06/0.1293, allocations: 0 / 361.6 MB, free: 0.793 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.393e-06/0.1293, allocations: 0 / 361.6 MB, free: 0.793 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005784/0.1299, allocations: 393.2 kB / 361.9 MB, free: 396 kB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.392e-05/0.13, allocations: 108.7 kB / 362.1 MB, free: 268 kB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.453e-05/0.13, allocations: 4.062 kB / 362.1 MB, free: 264 kB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001695/0.1302, allocations: 19.98 kB / 362.1 MB, free: 244 kB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.457e-05/0.1303, allocations: 15.94 kB / 362.1 MB, free: 228 kB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.97e-05/0.1303, allocations: 8 kB / 362.1 MB, free: 220 kB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0001282/0.1304, allocations: 156.7 kB / 362.3 MB, free: 64 kB / 286.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1304, allocations: 0 / 362.3 MB, free: 64 kB / 286.1 MB Notification: Performance of remove unused functions: time 0.0003726/0.1308, allocations: 75.83 kB / 362.3 MB, free: 15.98 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 6 (sineCurrent.phi,inductor1.i,capacitor1.v,cosineCurrent.phi,inductor2.i,capacitor2.v) * 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 (21): * Single equations (assignments): 21 * 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.0008559/0.1317, allocations: 0.927 MB / 363.3 MB, free: 15.03 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003821/0.1321, allocations: 184.3 kB / 363.4 MB, free: 14.85 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.235e-06/0.1321, allocations: 0 / 363.4 MB, free: 14.85 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001671/0.1322, allocations: 90.41 kB / 363.5 MB, free: 14.76 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003508/0.1326, allocations: 24.67 kB / 363.5 MB, free: 14.74 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002577/0.1352, allocations: 1.906 MB / 365.4 MB, free: 12.75 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000294/0.1355, allocations: 0.7675 MB / 366.2 MB, free: 11.96 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001035/0.1356, allocations: 21.95 kB / 366.2 MB, free: 11.94 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001164/0.1357, allocations: 87.41 kB / 366.3 MB, free: 11.86 MB / 302.1 MB Notification: Performance of SimCode: time 2.1e-07/0.1357, allocations: 0 / 366.3 MB, free: 11.86 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01507/0.1508, allocations: 4.164 MB / 370.5 MB, free: 7.848 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001978/0.1511, allocations: 192.3 kB / 370.7 MB, free: 7.605 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.928/2.079, allocations: 0 / 370.7 MB, free: 7.605 MB / 302.1 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ParallelResonance.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ParallelResonance.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ParallelResonance.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ParallelResonance.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ParallelResonance_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Analog_Examples_ParallelResonance_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Analog_Examples_ParallelResonance.fmu > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ParallelResonance.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ParallelResonance_res.mat does not exist to compare? outputFormat=mat