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.001458/0.001463, allocations: 177.8 kB / 8.358 MB, free: 0.7188 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.04/2.04, allocations: 205.3 MB / 214.1 MB, free: 14.14 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001101/0.001101, allocations: 83.17 kB / 262.1 MB, free: 13.87 MB / 219.1 MB Notification: Performance of FrontEnd - loaded program: time 1.746e-05/1.754e-05, allocations: 0 / 314.9 MB, free: 9.055 MB / 267.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3371/0.3372, allocations: 47.56 MB / 362.4 MB, free: 45.73 MB / 299.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1234/0.4606, allocations: 76.21 MB / 438.6 MB, free: 10.01 MB / 331.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002684/0.461, allocations: 67.97 kB / 438.7 MB, free: 9.945 MB / 331.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.02309/0.4841, allocations: 5.357 MB / 444.1 MB, free: 4.629 MB / 331.1 MB Notification: Performance of FrontEnd: time 2.244e-06/0.4841, allocations: 0 / 444.1 MB, free: 4.629 MB / 331.1 MB Notification: Performance of Transformations before backend: time 2.81e-05/0.4842, allocations: 8 kB / 444.1 MB, free: 4.621 MB / 331.1 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.001333/0.4855, allocations: 0.5953 MB / 444.7 MB, free: 3.984 MB / 331.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.072e-05/0.4856, allocations: 8.031 kB / 444.7 MB, free: 3.977 MB / 331.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00013/0.4857, allocations: 47.52 kB / 444.7 MB, free: 3.93 MB / 331.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004517/0.4862, allocations: 276 kB / 445 MB, free: 3.617 MB / 331.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.141e-05/0.4862, allocations: 16 kB / 445 MB, free: 3.602 MB / 331.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.35e-05/0.4863, allocations: 32.11 kB / 445 MB, free: 3.574 MB / 331.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0007494/0.4871, allocations: 238.6 kB / 445.3 MB, free: 3.34 MB / 331.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008726/0.488, allocations: 375.5 kB / 445.6 MB, free: 2.945 MB / 331.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.303e-05/0.488, allocations: 0 / 445.6 MB, free: 2.945 MB / 331.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.65e-05/0.4881, allocations: 0 / 445.6 MB, free: 2.945 MB / 331.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.897e-05/0.4881, allocations: 12 kB / 445.6 MB, free: 2.934 MB / 331.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002824/0.4909, allocations: 1.232 MB / 446.9 MB, free: 1.625 MB / 331.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006015/0.4916, allocations: 223 kB / 447.1 MB, free: 1.395 MB / 331.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004975/0.4921, allocations: 170.5 kB / 447.3 MB, free: 1.227 MB / 331.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.217e-05/0.4922, allocations: 7.938 kB / 447.3 MB, free: 1.219 MB / 331.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.692e-05/0.4922, allocations: 42.55 kB / 447.3 MB, free: 1.168 MB / 331.1 MB Notification: Performance of pre-optimization done (n=29): time 2.765e-06/0.4922, allocations: 0 / 447.3 MB, free: 1.168 MB / 331.1 MB Notification: Performance of matching and sorting (n=29): time 0.0008652/0.4931, allocations: 257.4 kB / 447.6 MB, free: 0.9102 MB / 331.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001222/0.4932, allocations: 235.3 kB / 447.8 MB, free: 0.625 MB / 331.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002082/0.4935, allocations: 153.8 kB / 447.9 MB, free: 476 kB / 331.1 MB Notification: Performance of collectPreVariables (initialization): time 3.557e-05/0.4935, allocations: 25.7 kB / 448 MB, free: 444 kB / 331.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001742/0.4937, allocations: 262.6 kB / 448.2 MB, free: 180 kB / 331.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001062/0.4938, allocations: 98.06 kB / 448.3 MB, free: 84 kB / 331.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.658e-05/0.4938, allocations: 3.938 kB / 448.3 MB, free: 80 kB / 331.1 MB Notification: Performance of setup shared object (initialization): time 0.000152/0.494, allocations: 330.8 kB / 448.6 MB, free: 15.75 MB / 347.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001743/0.4942, allocations: 60 kB / 448.7 MB, free: 15.69 MB / 347.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002562/0.4945, allocations: 131.2 kB / 448.8 MB, free: 15.53 MB / 347.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002522/0.4947, allocations: 88.95 kB / 448.9 MB, free: 15.44 MB / 347.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.977e-06/0.4947, allocations: 3.938 kB / 448.9 MB, free: 15.44 MB / 347.1 MB Notification: Performance of matching and sorting (n=38) (initialization): time 0.0005992/0.4954, allocations: 219.6 kB / 449.1 MB, free: 15.22 MB / 347.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.148e-05/0.4954, allocations: 4 kB / 449.1 MB, free: 15.21 MB / 347.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.655e-06/0.4954, allocations: 0 / 449.1 MB, free: 15.21 MB / 347.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.254e-05/0.4954, allocations: 7.953 kB / 449.1 MB, free: 15.21 MB / 347.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006441/0.4961, allocations: 83.89 kB / 449.2 MB, free: 15.12 MB / 347.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.568e-06/0.4961, allocations: 4.062 kB / 449.2 MB, free: 15.12 MB / 347.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003057/0.4964, allocations: 31.61 kB / 449.3 MB, free: 15.09 MB / 347.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.383e-05/0.4965, allocations: 12 kB / 449.3 MB, free: 15.08 MB / 347.1 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.0001975/0.4967, allocations: 110.2 kB / 449.4 MB, free: 14.96 MB / 347.1 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0007523/0.4975, allocations: 258.4 kB / 449.6 MB, free: 14.7 MB / 347.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.513e-05/0.4975, allocations: 19.81 kB / 449.7 MB, free: 14.68 MB / 347.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.479e-05/0.4976, allocations: 31.41 kB / 449.7 MB, free: 14.65 MB / 347.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.239e-05/0.4977, allocations: 4.75 kB / 449.7 MB, free: 14.65 MB / 347.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.725e-06/0.4977, allocations: 0 / 449.7 MB, free: 14.65 MB / 347.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.116e-06/0.4977, allocations: 3.984 kB / 449.7 MB, free: 14.64 MB / 347.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001498/0.4992, allocations: 0.6866 MB / 450.4 MB, free: 13.91 MB / 347.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.779e-06/0.4992, allocations: 0 / 450.4 MB, free: 13.91 MB / 347.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004963/0.4997, allocations: 61.77 kB / 450.4 MB, free: 13.85 MB / 347.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000477/0.5002, allocations: 86.92 kB / 450.5 MB, free: 13.77 MB / 347.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.236e-05/0.5003, allocations: 0 / 450.5 MB, free: 13.77 MB / 347.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002562/0.5029, allocations: 1.746 MB / 452.3 MB, free: 11.91 MB / 347.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.717e-06/0.5029, allocations: 0 / 452.3 MB, free: 11.91 MB / 347.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001098/0.504, allocations: 478.7 kB / 452.7 MB, free: 11.41 MB / 347.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001028/0.5041, allocations: 100.8 kB / 452.8 MB, free: 11.3 MB / 347.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.351e-05/0.5042, allocations: 0 / 452.8 MB, free: 11.3 MB / 347.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002816/0.5045, allocations: 8 kB / 452.8 MB, free: 11.29 MB / 347.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.646e-05/0.5046, allocations: 32.06 kB / 452.9 MB, free: 11.26 MB / 347.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.514e-05/0.5046, allocations: 11.94 kB / 452.9 MB, free: 11.25 MB / 347.1 MB Notification: Performance of sorting global known variables: time 0.0001366/0.5048, allocations: 124.3 kB / 453 MB, free: 11.12 MB / 347.1 MB Notification: Performance of sort global known variables: time 3.81e-07/0.5048, allocations: 0 / 453 MB, free: 11.12 MB / 347.1 MB Notification: Performance of remove unused functions: time 0.0005702/0.5053, allocations: 99.59 kB / 453.1 MB, free: 11.03 MB / 347.1 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.001385/0.5067, allocations: 1.086 MB / 454.2 MB, free: 9.906 MB / 347.1 MB Notification: Performance of simCode: created initialization part: time 0.0005333/0.5073, allocations: 180.2 kB / 454.4 MB, free: 9.73 MB / 347.1 MB Notification: Performance of simCode: created event and clocks part: time 3.477e-06/0.5073, allocations: 0 / 454.4 MB, free: 9.73 MB / 347.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005428/0.5079, allocations: 246.1 kB / 454.6 MB, free: 9.48 MB / 347.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002726/0.5082, allocations: 5.625 kB / 454.6 MB, free: 9.477 MB / 347.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001951/0.5101, allocations: 0.7599 MB / 455.4 MB, free: 8.672 MB / 347.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004313/0.5106, allocations: 0.8026 MB / 456.2 MB, free: 7.844 MB / 347.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002184/0.5108, allocations: 103.4 kB / 456.3 MB, free: 7.742 MB / 347.1 MB Notification: Performance of SimCode: time 9.42e-07/0.5108, allocations: 0 / 456.3 MB, free: 7.742 MB / 347.1 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.892/3.403, allocations: 5.126 MB / 461.4 MB, free: 2.633 MB / 347.1 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