Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Electrical.QuasiStationary.SinglePhase.Examples.SeriesResonance.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.Electrical.QuasiStationary.SinglePhase.Examples.SeriesResonance,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Electrical_QuasiStationary_SinglePhase_Examples_SeriesResonance",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.QuasiStationary.SinglePhase.Examples.SeriesResonance,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Electrical_QuasiStationary_SinglePhase_Examples_SeriesResonance",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.001618/0.001618, allocations: 188.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.079/2.079, allocations: 205.4 MB / 222.5 MB, free: 13.85 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001138/0.001138, allocations: 94.8 kB / 270.9 MB, free: 13.38 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004244/0.0004246, allocations: 12 kB / 327.1 MB, free: 14.99 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1191/0.1196, allocations: 47.58 MB / 374.6 MB, free: 15.32 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.QuasiStationary.SinglePhase.Examples.SeriesResonance): time 0.005429/0.1251, allocations: 3.015 MB / 377.7 MB, free: 12.29 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.00355/0.1287, allocations: 1.357 MB / 379 MB, free: 10.92 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003694/0.1291, allocations: 8 kB / 379 MB, free: 10.91 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0006131/0.1297, allocations: 127.3 kB / 379.2 MB, free: 10.79 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002034/0.1318, allocations: 482.5 kB / 379.6 MB, free: 10.32 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001344/0.1332, allocations: 347 kB / 380 MB, free: 9.977 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0008724/0.1341, allocations: 331.3 kB / 380.3 MB, free: 9.652 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001879/0.1359, allocations: 0.6406 MB / 380.9 MB, free: 8.988 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004973/0.1365, allocations: 175.3 kB / 381.1 MB, free: 8.816 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004276/0.1369, allocations: 227.1 kB / 381.3 MB, free: 8.594 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 8.557e-05/0.137, allocations: 24 kB / 381.3 MB, free: 8.57 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008032/0.1378, allocations: 163.7 kB / 381.5 MB, free: 8.41 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001127/0.138, allocations: 87.64 kB / 381.6 MB, free: 8.324 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001711/0.1382, allocations: 105.5 kB / 381.7 MB, free: 8.215 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001094/0.1393, allocations: 0.5183 MB / 382.2 MB, free: 7.695 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.779e-06/0.1393, allocations: 0 / 382.2 MB, free: 7.695 MB / 282.7 MB Notification: Performance of FrontEnd: time 3.366e-06/0.1394, allocations: 0 / 382.2 MB, free: 7.695 MB / 282.7 MB Notification: Performance of Transformations before backend: time 1.989e-05/0.1394, allocations: 0 / 382.2 MB, free: 7.695 MB / 282.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 144 * Number of variables: 144 Notification: Performance of Generate backend data structure: time 0.004224/0.1436, allocations: 0.8349 MB / 383 MB, free: 6.812 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.48e-05/0.1437, allocations: 12.03 kB / 383.1 MB, free: 6.801 MB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002673/0.144, allocations: 99.81 kB / 383.2 MB, free: 6.695 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006521/0.1505, allocations: 0.5926 MB / 383.7 MB, free: 6.102 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007299/0.1513, allocations: 318.3 kB / 384.1 MB, free: 5.75 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.084e-05/0.1514, allocations: 49.25 kB / 384.1 MB, free: 5.699 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001543/0.1515, allocations: 56 kB / 384.2 MB, free: 5.645 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001811/0.1534, allocations: 0.557 MB / 384.7 MB, free: 5.082 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.542e-05/0.1534, allocations: 4 kB / 384.7 MB, free: 5.078 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.562e-05/0.1536, allocations: 24 kB / 384.7 MB, free: 5.055 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.149e-05/0.1536, allocations: 12 kB / 384.8 MB, free: 5.043 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001981/0.1556, allocations: 0.6415 MB / 385.4 MB, free: 4.402 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005258/0.1609, allocations: 2.065 MB / 387.5 MB, free: 2.203 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.2625/0.4234, allocations: 2.999 MB / 390.5 MB, free: 17.54 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001706/0.4236, allocations: 89.83 kB / 390.6 MB, free: 17.45 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.504e-05/0.4237, allocations: 40.19 kB / 390.6 MB, free: 17.41 MB / 282.7 MB Notification: Performance of pre-optimization done (n=49): time 3.607e-06/0.4237, allocations: 0 / 390.6 MB, free: 17.41 MB / 282.7 MB Notification: Performance of matching and sorting (n=49): time 0.003542/0.4273, allocations: 0.8028 MB / 391.4 MB, free: 17.27 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.793e-05/0.4274, allocations: 58.94 kB / 391.5 MB, free: 17.21 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003234/0.4277, allocations: 201.5 kB / 391.6 MB, free: 17.11 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 5.683e-05/0.4278, allocations: 38.92 kB / 391.7 MB, free: 17.07 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000168/0.4279, allocations: 306.1 kB / 392 MB, free: 16.86 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001768/0.4281, allocations: 172.4 kB / 392.2 MB, free: 16.75 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.184e-05/0.4282, allocations: 10.25 kB / 392.2 MB, free: 16.75 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 9.526e-05/0.4283, allocations: 334.5 kB / 392.5 MB, free: 16.44 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005619/0.4289, allocations: 163.5 kB / 392.6 MB, free: 16.43 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006149/0.4295, allocations: 286.7 kB / 392.9 MB, free: 16.32 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005915/0.4301, allocations: 196.6 kB / 393.1 MB, free: 16.31 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.073e-06/0.4301, allocations: 5.312 kB / 393.1 MB, free: 16.31 MB / 282.7 MB Notification: Performance of matching and sorting (n=67) (initialization): time 0.001775/0.4319, allocations: 0.5774 MB / 393.7 MB, free: 16.14 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.015e-05/0.432, allocations: 7.219 kB / 393.7 MB, free: 16.14 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.289e-05/0.432, allocations: 1.562 kB / 393.7 MB, free: 16.14 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005723/0.4326, allocations: 98.09 kB / 393.8 MB, free: 16.11 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007937/0.4334, allocations: 107.8 kB / 393.9 MB, free: 16.11 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002689/0.4361, allocations: 1.873 MB / 395.8 MB, free: 14.47 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005609/0.4367, allocations: 57.33 kB / 395.8 MB, free: 14.44 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.934e-05/0.4368, allocations: 21.38 kB / 395.9 MB, free: 14.43 MB / 282.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 14 * 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 (58): * Single equations (assignments): 57 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 8} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002877/0.4371, allocations: 175.3 kB / 396 MB, free: 14.27 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.752e-05/0.4372, allocations: 27.45 kB / 396.1 MB, free: 14.26 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001782/0.439, allocations: 0.5608 MB / 396.6 MB, free: 14.01 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.219e-05/0.4391, allocations: 5.219 kB / 396.6 MB, free: 14.01 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.095e-06/0.4391, allocations: 2.016 kB / 396.6 MB, free: 14.01 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.092e-05/0.4391, allocations: 7.219 kB / 396.6 MB, free: 14.01 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002779/0.4419, allocations: 1.159 MB / 397.8 MB, free: 13.35 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.207e-06/0.4419, allocations: 1.062 kB / 397.8 MB, free: 13.35 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006676/0.4426, allocations: 81.48 kB / 397.9 MB, free: 13.34 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004772/0.4431, allocations: 83.95 kB / 398 MB, free: 13.32 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.465e-05/0.4432, allocations: 12 kB / 398 MB, free: 13.31 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00263/0.4458, allocations: 1.874 MB / 399.8 MB, free: 11.67 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.986e-06/0.4459, allocations: 0.9688 kB / 399.8 MB, free: 11.67 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002299/0.4482, allocations: 0.8129 MB / 400.7 MB, free: 11.25 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001412/0.4484, allocations: 112.8 kB / 400.8 MB, free: 11.14 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.147e-05/0.4485, allocations: 14.77 kB / 400.8 MB, free: 11.12 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004049/0.4489, allocations: 22.31 kB / 400.8 MB, free: 11.12 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001611/0.4491, allocations: 34.34 kB / 400.8 MB, free: 11.11 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.521e-05/0.4491, allocations: 18.3 kB / 400.9 MB, free: 11.11 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0001973/0.4493, allocations: 147.1 kB / 401 MB, free: 11.01 MB / 282.7 MB Notification: Performance of sort global known variables: time 3.61e-07/0.4494, allocations: 1.156 kB / 401 MB, free: 11.01 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0009715/0.4503, allocations: 153 kB / 401.1 MB, free: 10.97 MB / 282.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (voltageSource.pin_p.reference.gamma) * 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 (44): * Single equations (assignments): 43 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 8} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.002709/0.4531, allocations: 1.382 MB / 402.5 MB, free: 10.01 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.001803/0.4549, allocations: 0.5999 MB / 403.1 MB, free: 9.723 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 4.608e-06/0.455, allocations: 0 / 403.1 MB, free: 9.723 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000951/0.4559, allocations: 395.5 kB / 403.5 MB, free: 9.508 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004414/0.4564, allocations: 21.23 kB / 403.5 MB, free: 9.492 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00587/0.4623, allocations: 4.252 MB / 407.8 MB, free: 6.16 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000411/0.4628, allocations: 0.8257 MB / 408.6 MB, free: 5.457 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003874/0.4632, allocations: 148.9 kB / 408.8 MB, free: 5.352 MB / 282.7 MB Notification: Performance of SimCode: time 1.573e-06/0.4632, allocations: 0 / 408.8 MB, free: 5.352 MB / 282.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.82/3.283, allocations: 8.059 MB / 416.8 MB, free: 2.438 MB / 282.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Electrical.QuasiStationary.SinglePhase.Examples.SeriesResonance.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Electrical.QuasiStationary.SinglePhase.Examples.SeriesResonance.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Electrical.QuasiStationary.SinglePhase.Examples.SeriesResonance.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Electrical.QuasiStationary.SinglePhase.Examples.SeriesResonance.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Electrical.QuasiStationary.SinglePhase.Examples.SeriesResonance_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Electrical_QuasiStationary_SinglePhase_Examples_SeriesResonance_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Electrical_QuasiStationary_SinglePhase_Examples_SeriesResonance.fmu > Modelica_3.2.3_cpp_Modelica.Electrical.QuasiStationary.SinglePhase.Examples.SeriesResonance.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_cpp_Modelica.Electrical.QuasiStationary.SinglePhase.Examples.SeriesResonance_res.mat does not exist to compare? outputFormat=mat