Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_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_Modelica_Electrical_Spice3_Examples_CoupledInductors",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.CoupledInductors,fileNamePrefix="Modelica_3_2_3_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.001176/0.001176, allocations: 182 kB / 17.01 MB, free: 5.125 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.273/1.273, allocations: 205.4 MB / 223.1 MB, free: 9.121 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.0009021/0.000902, allocations: 92.16 kB / 271.5 MB, free: 8.367 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002549/0.0002551, allocations: 4 kB / 328.3 MB, free: 15.45 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2219/0.2222, allocations: 47.57 MB / 375.9 MB, free: 45.63 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.08432/0.3066, allocations: 76.96 MB / 452.9 MB, free: 3.695 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002131/0.3068, allocations: 71.97 kB / 452.9 MB, free: 3.625 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01414/0.321, allocations: 5.396 MB / 458.3 MB, free: 14.22 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.114e-06/0.321, allocations: 0 / 458.3 MB, free: 14.22 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.834e-05/0.321, allocations: 12 kB / 458.3 MB, free: 14.21 MB / 346.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.0008956/0.322, allocations: 0.6045 MB / 458.9 MB, free: 13.56 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.446e-05/0.322, allocations: 16.03 kB / 459 MB, free: 13.54 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.852e-05/0.3221, allocations: 78.52 kB / 459 MB, free: 13.46 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.717e-05/0.3222, allocations: 47.44 kB / 459.1 MB, free: 13.41 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003089/0.3225, allocations: 283 kB / 459.4 MB, free: 13.09 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.731e-05/0.3225, allocations: 29 kB / 459.4 MB, free: 13.06 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.393e-05/0.3226, allocations: 40 kB / 459.4 MB, free: 13.02 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006817/0.3233, allocations: 455.2 kB / 459.9 MB, free: 12.55 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.668e-05/0.3233, allocations: 0 / 459.9 MB, free: 12.55 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.847e-05/0.3234, allocations: 23.94 kB / 459.9 MB, free: 12.52 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.678e-06/0.3234, allocations: 8 kB / 459.9 MB, free: 12.52 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005096/0.3239, allocations: 283.9 kB / 460.2 MB, free: 12.24 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001785/0.3257, allocations: 1.322 MB / 461.5 MB, free: 10.83 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004174/0.3261, allocations: 250.8 kB / 461.8 MB, free: 10.57 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.362e-05/0.3262, allocations: 4 kB / 461.8 MB, free: 10.57 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.691e-05/0.3262, allocations: 34.56 kB / 461.8 MB, free: 10.52 MB / 346.7 MB Notification: Performance of pre-optimization done (n=29): time 1.633e-06/0.3262, allocations: 0 / 461.8 MB, free: 10.52 MB / 346.7 MB Notification: Performance of matching and sorting (n=29): time 0.001292/0.3275, allocations: 0.567 MB / 462.4 MB, free: 9.93 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001067/0.3276, allocations: 235.3 kB / 462.6 MB, free: 9.645 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000167/0.3278, allocations: 189.9 kB / 462.8 MB, free: 9.453 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 2.618e-05/0.3278, allocations: 29.7 kB / 462.8 MB, free: 9.418 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001158/0.328, allocations: 199.9 kB / 463 MB, free: 9.219 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.501e-05/0.328, allocations: 102.5 kB / 463.1 MB, free: 9.117 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.266e-05/0.328, allocations: 4 kB / 463.1 MB, free: 9.113 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001163/0.3282, allocations: 338.8 kB / 463.4 MB, free: 8.773 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001469/0.3283, allocations: 71.97 kB / 463.5 MB, free: 8.703 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002026/0.3285, allocations: 162.5 kB / 463.7 MB, free: 8.52 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001789/0.3287, allocations: 103.9 kB / 463.8 MB, free: 8.418 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.844e-06/0.3287, allocations: 3.938 kB / 463.8 MB, free: 8.414 MB / 346.7 MB Notification: Performance of matching and sorting (n=38) (initialization): time 0.0004241/0.3292, allocations: 284.8 kB / 464 MB, free: 8.129 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.498e-05/0.3292, allocations: 8.031 kB / 464 MB, free: 8.121 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.612e-06/0.3292, allocations: 3.953 kB / 464.1 MB, free: 8.117 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.399e-05/0.3292, allocations: 4 kB / 464.1 MB, free: 8.113 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003276/0.3295, allocations: 83.89 kB / 464.1 MB, free: 8.031 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.961e-06/0.3296, allocations: 0 / 464.1 MB, free: 8.031 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001601/0.3297, allocations: 35.67 kB / 464.2 MB, free: 7.996 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.915e-05/0.3298, allocations: 12 kB / 464.2 MB, free: 7.984 MB / 346.7 MB Warning: Assuming fixed start value for the following 2 variables: C2.vinternal:VARIABLE(unit = "V" fixed = true protected = true ) "Capacitor voltage" type: Real C1.vinternal:VARIABLE(unit = "V" fixed = true protected = true ) "Capacitor voltage" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * 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 (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.0002435/0.33, allocations: 156.4 kB / 464.3 MB, free: 7.824 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.27e-05/0.3301, allocations: 23.81 kB / 464.4 MB, free: 7.801 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.053e-05/0.3301, allocations: 34.64 kB / 464.4 MB, free: 7.77 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.929e-06/0.3301, allocations: 3.953 kB / 464.4 MB, free: 7.766 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.913e-06/0.3302, allocations: 4 kB / 464.4 MB, free: 7.762 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.048e-06/0.3302, allocations: 0 / 464.4 MB, free: 7.762 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00041/0.3306, allocations: 405.2 kB / 464.8 MB, free: 7.316 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.523e-06/0.3306, allocations: 0 / 464.8 MB, free: 7.316 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002593/0.3309, allocations: 51.97 kB / 464.8 MB, free: 7.266 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000326/0.3312, allocations: 88.8 kB / 464.9 MB, free: 7.176 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.883e-05/0.3312, allocations: 7.938 kB / 464.9 MB, free: 7.168 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001813/0.333, allocations: 1.871 MB / 466.8 MB, free: 5.164 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.847e-06/0.3331, allocations: 3.984 kB / 466.8 MB, free: 5.16 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007308/0.3338, allocations: 0.5163 MB / 467.3 MB, free: 4.621 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.876e-05/0.3339, allocations: 100.8 kB / 467.4 MB, free: 4.504 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.321e-05/0.3339, allocations: 12.02 kB / 467.4 MB, free: 4.492 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001642/0.3341, allocations: 12 kB / 467.5 MB, free: 4.48 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.837e-05/0.3341, allocations: 23.95 kB / 467.5 MB, free: 4.457 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.4e-05/0.3342, allocations: 8 kB / 467.5 MB, free: 4.449 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0001179/0.3343, allocations: 156.4 kB / 467.6 MB, free: 4.297 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3343, allocations: 0 / 467.6 MB, free: 4.297 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0003369/0.3346, allocations: 107.6 kB / 467.7 MB, free: 4.191 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 5 (L1.iinternal,L2.iinternal,C1.vinternal,L3.iinternal,C2.vinternal) * 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 (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.001078/0.3357, allocations: 1.061 MB / 468.8 MB, free: 3.102 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0003838/0.3361, allocations: 216.7 kB / 469 MB, free: 2.891 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 5.009e-06/0.3361, allocations: 4 kB / 469 MB, free: 2.887 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004113/0.3366, allocations: 286.5 kB / 469.3 MB, free: 2.594 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001766/0.3367, allocations: 24 kB / 469.3 MB, free: 2.57 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00245/0.3392, allocations: 2.067 MB / 471.4 MB, free: 460 kB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000365/0.3396, allocations: 0.7908 MB / 472.2 MB, free: 15.63 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 9.351e-05/0.3397, allocations: 25.94 kB / 472.2 MB, free: 15.61 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001322/0.3398, allocations: 103.4 kB / 472.3 MB, free: 15.5 MB / 362.7 MB Notification: Performance of SimCode: time 3.3e-07/0.3398, allocations: 0 / 472.3 MB, free: 15.5 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01668/0.3565, allocations: 5.167 MB / 477.5 MB, free: 10.37 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000191/0.3567, allocations: 196 kB / 477.7 MB, free: 10.14 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.827/2.183, allocations: 4 kB / 477.7 MB, free: 10.13 MB / 362.7 MB (rm -f Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.CoupledInductors.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.CoupledInductors.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.CoupledInductors.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.CoupledInductors.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.CoupledInductors_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Electrical_Spice3_Examples_CoupledInductors_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Electrical_Spice3_Examples_CoupledInductors.fmu > Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.CoupledInductors.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.CoupledInductors_res.mat does not exist to compare? outputFormat=mat