Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.CoupledInductors.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.Spice3.Examples.CoupledInductors,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Electrical_Spice3_Examples_CoupledInductors",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.CoupledInductors,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Electrical_Spice3_Examples_CoupledInductors",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.002308/0.002307, allocations: 181.3 kB / 13.66 MB, free: 1.664 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.186/2.186, allocations: 205.2 MB / 219.4 MB, free: 14.21 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.001088/0.001088, allocations: 86.66 kB / 267.5 MB, free: 14.04 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.167e-05/3.171e-05, allocations: 7.984 kB / 321.6 MB, free: 17.75 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09192/0.09198, allocations: 47.57 MB / 369.2 MB, free: 2.113 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4556/0.5476, allocations: 76.87 MB / 446 MB, free: 300 kB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002657/0.548, allocations: 70.14 kB / 446.1 MB, free: 264 kB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02453/0.5725, allocations: 5.411 MB / 451.5 MB, free: 11.68 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.354e-06/0.5726, allocations: 0 / 451.5 MB, free: 11.68 MB / 330.7 MB Notification: Performance of Transformations before backend: time 2.74e-05/0.5726, allocations: 8 kB / 451.5 MB, free: 11.67 MB / 330.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 103 * Number of variables: 103 Notification: Performance of Generate backend data structure: time 0.00144/0.5741, allocations: 0.5941 MB / 452.1 MB, free: 11.06 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.544e-05/0.5741, allocations: 8.031 kB / 452.1 MB, free: 11.05 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001446/0.5743, allocations: 77.53 kB / 452.2 MB, free: 10.99 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001308/0.5744, allocations: 52.22 kB / 452.3 MB, free: 10.94 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004611/0.5749, allocations: 281.2 kB / 452.5 MB, free: 10.65 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.261e-05/0.575, allocations: 29.75 kB / 452.6 MB, free: 10.64 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001095/0.5751, allocations: 45.92 kB / 452.6 MB, free: 10.61 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001031/0.5762, allocations: 425.7 kB / 453 MB, free: 10.28 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.74e-05/0.5762, allocations: 8 kB / 453 MB, free: 10.27 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.483e-05/0.5763, allocations: 21.92 kB / 453.1 MB, free: 10.26 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.942e-05/0.5763, allocations: 10.19 kB / 453.1 MB, free: 10.25 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007599/0.5771, allocations: 259.6 kB / 453.3 MB, free: 10.09 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003062/0.5802, allocations: 1.325 MB / 454.6 MB, free: 8.953 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000634/0.5809, allocations: 234.5 kB / 454.9 MB, free: 8.789 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005278/0.5814, allocations: 186.4 kB / 455.1 MB, free: 8.66 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.897e-05/0.5815, allocations: 7.984 kB / 455.1 MB, free: 8.652 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.75e-05/0.5815, allocations: 42.02 kB / 455.1 MB, free: 8.605 MB / 330.7 MB Notification: Performance of pre-optimization done (n=29): time 3.146e-06/0.5816, allocations: 3.938 kB / 455.1 MB, free: 8.602 MB / 330.7 MB Notification: Performance of matching and sorting (n=29): time 0.0009612/0.5825, allocations: 280.9 kB / 455.4 MB, free: 8.383 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001374/0.5827, allocations: 239.3 kB / 455.6 MB, free: 8.094 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003199/0.583, allocations: 187 kB / 455.8 MB, free: 7.926 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 5.157e-05/0.5831, allocations: 35.83 kB / 455.8 MB, free: 7.891 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001779/0.5833, allocations: 256.3 kB / 456.1 MB, free: 7.66 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001113/0.5834, allocations: 103.2 kB / 456.2 MB, free: 7.574 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.933e-05/0.5834, allocations: 3.312 kB / 456.2 MB, free: 7.574 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001384/0.5836, allocations: 322.3 kB / 456.5 MB, free: 7.254 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002027/0.5838, allocations: 66 kB / 456.6 MB, free: 7.215 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002907/0.5841, allocations: 155.9 kB / 456.7 MB, free: 7.059 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002743/0.5844, allocations: 82.39 kB / 456.8 MB, free: 7.008 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.108e-06/0.5844, allocations: 0 / 456.8 MB, free: 7.008 MB / 330.7 MB Notification: Performance of matching and sorting (n=38) (initialization): time 0.0006467/0.5851, allocations: 258.1 kB / 457 MB, free: 6.809 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.291e-05/0.5851, allocations: 4 kB / 457.1 MB, free: 6.805 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.362e-05/0.5851, allocations: 7.984 kB / 457.1 MB, free: 6.797 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.918e-05/0.5852, allocations: 0 / 457.1 MB, free: 6.797 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006666/0.5858, allocations: 79.09 kB / 457.1 MB, free: 6.723 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.688e-05/0.5859, allocations: 7.984 kB / 457.1 MB, free: 6.715 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003274/0.5862, allocations: 30 kB / 457.2 MB, free: 6.691 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.393e-05/0.5862, allocations: 11 kB / 457.2 MB, free: 6.684 MB / 330.7 MB Warning: Assuming fixed start value for the following 2 variables: C2.vinternal:VARIABLE(unit = "V" protected = true ) "Capacitor voltage" type: Real C1.vinternal:VARIABLE(unit = "V" protected = true ) "Capacitor voltage" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (38): * Single equations (assignments): 38 * 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.0002197/0.5865, allocations: 130.5 kB / 457.3 MB, free: 6.559 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.082e-05/0.5866, allocations: 31.66 kB / 457.3 MB, free: 6.527 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.259e-05/0.5867, allocations: 30.78 kB / 457.4 MB, free: 6.516 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.446e-06/0.5867, allocations: 4 kB / 457.4 MB, free: 6.512 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.349e-05/0.5867, allocations: 4 kB / 457.4 MB, free: 6.508 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.624e-06/0.5867, allocations: 3.984 kB / 457.4 MB, free: 6.504 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001725/0.5885, allocations: 0.7678 MB / 458.2 MB, free: 5.754 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.09e-06/0.5885, allocations: 0 / 458.2 MB, free: 5.754 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005152/0.589, allocations: 51.97 kB / 458.2 MB, free: 5.703 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005136/0.5896, allocations: 88.75 kB / 458.3 MB, free: 5.613 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.472e-05/0.5896, allocations: 8 kB / 458.3 MB, free: 5.605 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002971/0.5926, allocations: 1.81 MB / 460.1 MB, free: 3.66 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.935e-06/0.5926, allocations: 3.938 kB / 460.1 MB, free: 3.656 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001215/0.5939, allocations: 0.5032 MB / 460.6 MB, free: 3.125 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001041/0.594, allocations: 96.92 kB / 460.7 MB, free: 3.012 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.314e-05/0.5941, allocations: 12.11 kB / 460.7 MB, free: 3 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003007/0.5944, allocations: 16 kB / 460.7 MB, free: 2.984 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.445e-05/0.5945, allocations: 31.86 kB / 460.8 MB, free: 2.953 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.54e-05/0.5945, allocations: 11.94 kB / 460.8 MB, free: 2.941 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0001967/0.5948, allocations: 148.4 kB / 460.9 MB, free: 2.797 MB / 330.7 MB Notification: Performance of sort global known variables: time 4.71e-07/0.5948, allocations: 0 / 460.9 MB, free: 2.797 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0006083/0.5954, allocations: 111.6 kB / 461 MB, free: 2.688 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 5 (L1.iinternal,L2.iinternal,C1.vinternal,L3.iinternal,C2.vinternal) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (18): * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 10} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001592/0.597, allocations: 1.109 MB / 462.1 MB, free: 1.539 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.000595/0.5976, allocations: 195.9 kB / 462.3 MB, free: 1.348 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 4.088e-06/0.5976, allocations: 0 / 462.3 MB, free: 1.348 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006221/0.5983, allocations: 254.3 kB / 462.6 MB, free: 1.086 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003098/0.5986, allocations: 24.17 kB / 462.6 MB, free: 1.062 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002116/0.6007, allocations: 0.8002 MB / 463.4 MB, free: 220 kB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004925/0.6013, allocations: 0.7908 MB / 464.2 MB, free: 15.4 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002416/0.6015, allocations: 107.4 kB / 464.3 MB, free: 15.29 MB / 346.7 MB Notification: Performance of SimCode: time 1.603e-06/0.6015, allocations: 4 kB / 464.3 MB, free: 15.29 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.695/3.296, allocations: 5.251 MB / 469.6 MB, free: 10.03 MB / 346.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.CoupledInductors.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.CoupledInductors.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.CoupledInductors.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.CoupledInductors.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.CoupledInductors_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Electrical_Spice3_Examples_CoupledInductors_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Electrical_Spice3_Examples_CoupledInductors.fmu > Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.CoupledInductors.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.CoupledInductors_res.mat does not exist to compare? outputFormat=mat