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.001406/0.001406, allocations: 172.4 kB / 14.1 MB, free: 1.223 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.545/1.545, allocations: 205.2 MB / 219.8 MB, free: 14.2 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.0009087/0.0009087, allocations: 94.64 kB / 268 MB, free: 14.04 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.622e-05/3.633e-05, allocations: 4 kB / 322.5 MB, free: 17.26 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08416/0.08421, allocations: 47.57 MB / 370.1 MB, free: 1.617 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2944/0.3786, allocations: 76.86 MB / 447 MB, free: 400 kB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002219/0.3789, allocations: 70.58 kB / 447 MB, free: 360 kB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01432/0.3932, allocations: 5.42 MB / 452.5 MB, free: 11.77 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.202e-06/0.3933, allocations: 0 / 452.5 MB, free: 11.77 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.734e-05/0.3933, allocations: 8 kB / 452.5 MB, free: 11.77 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.0008425/0.3942, allocations: 0.5944 MB / 453.1 MB, free: 11.15 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.499e-05/0.3942, allocations: 8.031 kB / 453.1 MB, free: 11.14 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.555e-05/0.3943, allocations: 82.89 kB / 453.2 MB, free: 11.08 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.25e-05/0.3944, allocations: 43.53 kB / 453.2 MB, free: 11.04 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003193/0.3947, allocations: 276.5 kB / 453.5 MB, free: 10.75 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.439e-05/0.3948, allocations: 34 kB / 453.5 MB, free: 10.73 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.354e-05/0.3948, allocations: 48.06 kB / 453.5 MB, free: 10.7 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000631/0.3955, allocations: 429.4 kB / 454 MB, free: 10.37 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.678e-05/0.3955, allocations: 0 / 454 MB, free: 10.37 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.51e-05/0.3955, allocations: 17.69 kB / 454 MB, free: 10.37 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.098e-05/0.3956, allocations: 8 kB / 454 MB, free: 10.36 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004896/0.3961, allocations: 265.4 kB / 454.3 MB, free: 10.2 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001722/0.3978, allocations: 1.327 MB / 455.6 MB, free: 9.051 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003874/0.3982, allocations: 224.2 kB / 455.8 MB, free: 8.895 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003214/0.3985, allocations: 193.1 kB / 456 MB, free: 8.715 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.093e-05/0.3986, allocations: 4 kB / 456 MB, free: 8.711 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.044e-05/0.3986, allocations: 42.52 kB / 456 MB, free: 8.66 MB / 330.7 MB Notification: Performance of pre-optimization done (n=29): time 1.452e-06/0.3986, allocations: 3.938 kB / 456 MB, free: 8.656 MB / 330.7 MB Notification: Performance of matching and sorting (n=29): time 0.0005755/0.3992, allocations: 279.1 kB / 456.3 MB, free: 8.375 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001194/0.3993, allocations: 235.3 kB / 456.5 MB, free: 8.09 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001805/0.3995, allocations: 193.7 kB / 456.7 MB, free: 7.895 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 2.52e-05/0.3995, allocations: 29.7 kB / 456.8 MB, free: 7.859 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001263/0.3997, allocations: 203.9 kB / 457 MB, free: 7.656 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.683e-05/0.3997, allocations: 102.5 kB / 457.1 MB, free: 7.555 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.246e-05/0.3998, allocations: 4 kB / 457.1 MB, free: 7.551 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001381/0.3999, allocations: 334.8 kB / 457.4 MB, free: 7.215 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001292/0.4, allocations: 64 kB / 457.4 MB, free: 7.152 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001853/0.4002, allocations: 144.7 kB / 457.6 MB, free: 6.977 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000156/0.4004, allocations: 88.73 kB / 457.7 MB, free: 6.891 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.424e-06/0.4004, allocations: 0 / 457.7 MB, free: 6.891 MB / 330.7 MB Notification: Performance of matching and sorting (n=38) (initialization): time 0.0003806/0.4008, allocations: 265.1 kB / 457.9 MB, free: 6.625 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.68e-05/0.4008, allocations: 7.938 kB / 457.9 MB, free: 6.617 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.264e-06/0.4008, allocations: 8.062 kB / 458 MB, free: 6.609 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.258e-05/0.4009, allocations: 0 / 458 MB, free: 6.609 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003275/0.4012, allocations: 83.89 kB / 458 MB, free: 6.527 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.022e-05/0.4012, allocations: 4 kB / 458 MB, free: 6.523 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001644/0.4014, allocations: 31.67 kB / 458.1 MB, free: 6.492 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.176e-05/0.4014, allocations: 12 kB / 458.1 MB, free: 6.48 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.0001527/0.4016, allocations: 120.9 kB / 458.2 MB, free: 6.355 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.362e-05/0.4016, allocations: 31.67 kB / 458.2 MB, free: 6.324 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.02e-05/0.4017, allocations: 34.77 kB / 458.3 MB, free: 6.293 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.499e-06/0.4017, allocations: 4 kB / 458.3 MB, free: 6.289 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.075e-06/0.4018, allocations: 0 / 458.3 MB, free: 6.289 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.28e-06/0.4018, allocations: 4 kB / 458.3 MB, free: 6.285 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000998/0.4028, allocations: 0.7721 MB / 459 MB, free: 5.453 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.386e-06/0.4028, allocations: 4 kB / 459 MB, free: 5.449 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002572/0.403, allocations: 55.94 kB / 459.1 MB, free: 5.395 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002993/0.4034, allocations: 90.28 kB / 459.2 MB, free: 5.305 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.954e-05/0.4034, allocations: 8 kB / 459.2 MB, free: 5.297 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00185/0.4052, allocations: 1.817 MB / 461 MB, free: 3.344 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.202e-06/0.4053, allocations: 0 / 461 MB, free: 3.344 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006986/0.406, allocations: 0.4993 MB / 461.5 MB, free: 2.816 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.148e-05/0.406, allocations: 96.77 kB / 461.6 MB, free: 2.703 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.393e-05/0.4061, allocations: 8.062 kB / 461.6 MB, free: 2.695 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001675/0.4063, allocations: 15.98 kB / 461.6 MB, free: 2.68 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.867e-05/0.4063, allocations: 27.92 kB / 461.7 MB, free: 2.652 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.504e-05/0.4064, allocations: 4 kB / 461.7 MB, free: 2.648 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0001395/0.4065, allocations: 156.4 kB / 461.8 MB, free: 2.496 MB / 330.7 MB Notification: Performance of sort global known variables: time 2.2e-07/0.4065, allocations: 0 / 461.8 MB, free: 2.496 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0003899/0.4069, allocations: 103.7 kB / 461.9 MB, free: 2.395 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.001173/0.4081, allocations: 1.117 MB / 463 MB, free: 1.242 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0003625/0.4085, allocations: 192 kB / 463.2 MB, free: 1.055 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 3.977e-06/0.4085, allocations: 3.984 kB / 463.2 MB, free: 1.051 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004076/0.4089, allocations: 254.3 kB / 463.5 MB, free: 0.7891 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002251/0.4091, allocations: 20.48 kB / 463.5 MB, free: 0.7695 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001362/0.4105, allocations: 0.7794 MB / 464.3 MB, free: 15.95 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003869/0.4109, allocations: 0.7908 MB / 465.1 MB, free: 15.13 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 9.026e-05/0.411, allocations: 22.08 kB / 465.1 MB, free: 15.11 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000152/0.4112, allocations: 107.4 kB / 465.2 MB, free: 15.01 MB / 346.7 MB Notification: Performance of SimCode: time 2.4e-07/0.4112, allocations: 0 / 465.2 MB, free: 15.01 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01826/0.4294, allocations: 5.141 MB / 470.3 MB, free: 9.871 MB / 346.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001718/0.4296, allocations: 185.7 kB / 470.5 MB, free: 9.637 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.743/2.173, allocations: 0 / 470.5 MB, free: 9.637 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