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.001104/0.001104, allocations: 178.4 kB / 8.698 MB, free: 388 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.55/1.55, allocations: 205.3 MB / 214.4 MB, free: 1.73 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009875/0.0009874, allocations: 82.7 kB / 262.5 MB, free: 1.676 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 2.023e-05/2.027e-05, allocations: 4 kB / 315.6 MB, free: 22.61 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08332/0.08336, allocations: 47.59 MB / 363.2 MB, free: 6.969 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3074/0.3908, allocations: 76.44 MB / 439.6 MB, free: 2.945 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001806/0.391, allocations: 67.83 kB / 439.7 MB, free: 2.91 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0142/0.4052, allocations: 5.357 MB / 445 MB, free: 14.47 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.863e-06/0.4052, allocations: 0 / 445 MB, free: 14.47 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.945e-05/0.4053, allocations: 8 kB / 445 MB, free: 14.46 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.0009146/0.4062, allocations: 0.6012 MB / 445.6 MB, free: 13.84 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.313e-05/0.4063, allocations: 12.03 kB / 445.7 MB, free: 13.83 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.673e-05/0.4064, allocations: 39.53 kB / 445.7 MB, free: 13.79 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003648/0.4067, allocations: 277 kB / 446 MB, free: 13.51 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.9e-05/0.4068, allocations: 12.77 kB / 446 MB, free: 13.5 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.893e-05/0.4068, allocations: 24 kB / 446 MB, free: 13.47 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0004396/0.4073, allocations: 240.8 kB / 446.2 MB, free: 13.32 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005901/0.4079, allocations: 369.9 kB / 446.6 MB, free: 13.02 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.867e-05/0.4079, allocations: 12.73 kB / 446.6 MB, free: 13.01 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.059e-05/0.4079, allocations: 0 / 446.6 MB, free: 13.01 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.354e-05/0.408, allocations: 8 kB / 446.6 MB, free: 13 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001729/0.4097, allocations: 1.239 MB / 447.9 MB, free: 11.93 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003978/0.4101, allocations: 221.6 kB / 448.1 MB, free: 11.78 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003115/0.4104, allocations: 169.8 kB / 448.2 MB, free: 11.66 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.588e-05/0.4105, allocations: 7.938 kB / 448.3 MB, free: 11.66 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.037e-05/0.4105, allocations: 38 kB / 448.3 MB, free: 11.61 MB / 330.7 MB Notification: Performance of pre-optimization done (n=29): time 1.893e-06/0.4105, allocations: 4 kB / 448.3 MB, free: 11.61 MB / 330.7 MB Notification: Performance of matching and sorting (n=29): time 0.0005741/0.4111, allocations: 270.4 kB / 448.6 MB, free: 11.39 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001302/0.4112, allocations: 238.4 kB / 448.8 MB, free: 11.11 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001505/0.4114, allocations: 152.5 kB / 448.9 MB, free: 10.96 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 2.529e-05/0.4114, allocations: 25.7 kB / 449 MB, free: 10.93 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001111/0.4116, allocations: 200.8 kB / 449.2 MB, free: 10.76 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.661e-05/0.4116, allocations: 95 kB / 449.3 MB, free: 10.68 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.071e-05/0.4117, allocations: 0 / 449.3 MB, free: 10.68 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001394/0.4118, allocations: 340.7 kB / 449.6 MB, free: 10.34 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.977e-05/0.4119, allocations: 56.38 kB / 449.6 MB, free: 10.31 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000163/0.4121, allocations: 131.2 kB / 449.8 MB, free: 10.18 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001354/0.4122, allocations: 89.27 kB / 449.9 MB, free: 10.12 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.464e-06/0.4122, allocations: 4 kB / 449.9 MB, free: 10.12 MB / 330.7 MB Notification: Performance of matching and sorting (n=38) (initialization): time 0.0003346/0.4126, allocations: 228.7 kB / 450.1 MB, free: 9.938 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.828e-05/0.4126, allocations: 8 kB / 450.1 MB, free: 9.93 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.032e-06/0.4126, allocations: 0 / 450.1 MB, free: 9.93 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.664e-05/0.4126, allocations: 7.953 kB / 450.1 MB, free: 9.922 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003203/0.413, allocations: 75.89 kB / 450.2 MB, free: 9.848 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.294e-06/0.413, allocations: 12.12 kB / 450.2 MB, free: 9.836 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001629/0.4132, allocations: 27.67 kB / 450.2 MB, free: 9.809 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.106e-05/0.4132, allocations: 11.44 kB / 450.2 MB, free: 9.801 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.0001545/0.4133, allocations: 108.9 kB / 450.3 MB, free: 9.688 MB / 330.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0004234/0.4138, allocations: 262.1 kB / 450.6 MB, free: 9.477 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.764e-05/0.4138, allocations: 23.72 kB / 450.6 MB, free: 9.453 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.791e-05/0.4139, allocations: 28.84 kB / 450.6 MB, free: 9.438 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.517e-06/0.4139, allocations: 0 / 450.6 MB, free: 9.438 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.747e-06/0.414, allocations: 4 kB / 450.6 MB, free: 9.434 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.442e-06/0.414, allocations: 3.984 kB / 450.6 MB, free: 9.43 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000871/0.4148, allocations: 0.6789 MB / 451.3 MB, free: 8.84 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.829e-06/0.4149, allocations: 4 kB / 451.3 MB, free: 8.836 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000253/0.4151, allocations: 55.89 kB / 451.4 MB, free: 8.785 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002882/0.4154, allocations: 90.03 kB / 451.5 MB, free: 8.711 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.707e-05/0.4154, allocations: 0 / 451.5 MB, free: 8.711 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001657/0.4171, allocations: 1.749 MB / 453.2 MB, free: 7.102 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.715e-06/0.4171, allocations: 0 / 453.2 MB, free: 7.102 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006176/0.4178, allocations: 483.5 kB / 453.7 MB, free: 6.703 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.889e-05/0.4178, allocations: 96.86 kB / 453.8 MB, free: 6.59 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.845e-05/0.4179, allocations: 0 / 453.8 MB, free: 6.59 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001705/0.418, allocations: 7.984 kB / 453.8 MB, free: 6.582 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.645e-05/0.4181, allocations: 27.67 kB / 453.8 MB, free: 6.559 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.335e-05/0.4181, allocations: 4 kB / 453.8 MB, free: 6.555 MB / 330.7 MB Notification: Performance of sorting global known variables: time 9.17e-05/0.4182, allocations: 129.6 kB / 453.9 MB, free: 6.445 MB / 330.7 MB Notification: Performance of sort global known variables: time 1.91e-07/0.4182, allocations: 0 / 453.9 MB, free: 6.445 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0003738/0.4186, allocations: 99.59 kB / 454 MB, free: 6.348 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.0009864/0.4196, allocations: 1.085 MB / 455.1 MB, free: 5.328 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0002951/0.4199, allocations: 185.8 kB / 455.3 MB, free: 5.199 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.524e-06/0.4199, allocations: 0 / 455.3 MB, free: 5.199 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003438/0.4203, allocations: 237.2 kB / 455.5 MB, free: 5 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001958/0.4205, allocations: 11.56 kB / 455.6 MB, free: 4.992 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001223/0.4217, allocations: 0.7389 MB / 456.3 MB, free: 4.262 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003641/0.4221, allocations: 0.7987 MB / 457.1 MB, free: 3.438 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 8.964e-05/0.4222, allocations: 18.08 kB / 457.1 MB, free: 3.422 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001227/0.4223, allocations: 108.3 kB / 457.2 MB, free: 3.387 MB / 330.7 MB Notification: Performance of SimCode: time 3.31e-07/0.4223, allocations: 0 / 457.2 MB, free: 3.387 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02632/0.4486, allocations: 4.475 MB / 461.7 MB, free: 14.91 MB / 346.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002107/0.4489, allocations: 148.2 kB / 461.8 MB, free: 14.71 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.727/2.176, allocations: 0 / 461.8 MB, free: 14.71 MB / 346.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