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"}) [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009975/0.0009975, allocations: 176.2 kB / 8.477 MB, free: 1.879 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.05/1.05, allocations: 205.2 MB / 214.1 MB, free: 5.094 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.0008485/0.0008485, allocations: 87.34 kB / 262.1 MB, free: 5.145 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.144/0.1449, allocations: 52.96 MB / 315.1 MB, free: 41.4 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06071/0.2056, allocations: 47.57 MB / 362.6 MB, free: 9.875 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.195/0.4006, allocations: 76.13 MB / 438.8 MB, free: 10.93 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001732/0.4008, allocations: 63.75 kB / 438.8 MB, free: 10.93 MB / 314.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.01335/0.4142, allocations: 5.686 MB / 444.5 MB, free: 10.13 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.146e-05/0.4142, allocations: 7.688 kB / 444.5 MB, free: 10.13 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.435e-05/0.4143, allocations: 46.81 kB / 444.6 MB, free: 10.11 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000248/0.4146, allocations: 270 kB / 444.8 MB, free: 9.879 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.638e-05/0.4146, allocations: 16.11 kB / 444.8 MB, free: 9.879 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.999e-05/0.4147, allocations: 26.91 kB / 444.9 MB, free: 9.875 MB / 314.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003783/0.415, allocations: 243 kB / 445.1 MB, free: 9.871 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000454/0.4155, allocations: 370.2 kB / 445.5 MB, free: 9.758 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.49e-05/0.4155, allocations: 0 / 445.5 MB, free: 9.758 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.117e-05/0.4156, allocations: 0.7031 kB / 445.5 MB, free: 9.758 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.656e-06/0.4156, allocations: 11.53 kB / 445.5 MB, free: 9.758 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00149/0.4171, allocations: 1.238 MB / 446.7 MB, free: 9.211 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002215/0.4173, allocations: 144.5 kB / 446.9 MB, free: 9.188 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002724/0.4176, allocations: 181.4 kB / 447 MB, free: 9.172 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.825e-05/0.4176, allocations: 3.812 kB / 447 MB, free: 9.172 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.737e-05/0.4176, allocations: 42.27 kB / 447.1 MB, free: 9.129 MB / 314.7 MB Notification: Performance of pre-optimization done (n=29): time 1.854e-06/0.4177, allocations: 0 / 447.1 MB, free: 9.129 MB / 314.7 MB Notification: Performance of matching and sorting (n=29): time 0.0004769/0.4181, allocations: 251.8 kB / 447.3 MB, free: 9.07 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.91e-05/0.4182, allocations: 239.1 kB / 447.6 MB, free: 8.789 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.81e-05/0.4183, allocations: 155.4 kB / 447.7 MB, free: 8.688 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 1.761e-05/0.4183, allocations: 25.7 kB / 447.7 MB, free: 8.656 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.097e-05/0.4184, allocations: 194.9 kB / 447.9 MB, free: 8.512 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.396e-05/0.4184, allocations: 97.11 kB / 448 MB, free: 8.449 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.026e-05/0.4184, allocations: 4 kB / 448 MB, free: 8.445 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 4.394e-05/0.4185, allocations: 332.2 kB / 448.3 MB, free: 8.129 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.819e-05/0.4186, allocations: 64.06 kB / 448.4 MB, free: 8.125 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001157/0.4187, allocations: 132.4 kB / 448.5 MB, free: 8.043 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001243/0.4188, allocations: 89.25 kB / 448.6 MB, free: 8.031 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.893e-06/0.4189, allocations: 0 / 448.6 MB, free: 8.031 MB / 314.7 MB Notification: Performance of matching and sorting (n=38) (initialization): time 0.0002945/0.4192, allocations: 222.3 kB / 448.8 MB, free: 7.988 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.016e-05/0.4192, allocations: 13.41 kB / 448.9 MB, free: 7.984 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.21e-06/0.4192, allocations: 0.5156 kB / 448.9 MB, free: 7.984 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.174e-05/0.4192, allocations: 3.812 kB / 448.9 MB, free: 7.984 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003309/0.4195, allocations: 88.27 kB / 448.9 MB, free: 7.977 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.328e-06/0.4195, allocations: 4.016 kB / 449 MB, free: 7.973 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001511/0.4197, allocations: 25.3 kB / 449 MB, free: 7.957 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.781e-05/0.4197, allocations: 12.27 kB / 449 MB, free: 7.953 MB / 314.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.0001035/0.4198, allocations: 114 kB / 449.1 MB, free: 7.84 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.379e-05/0.4199, allocations: 22.69 kB / 449.1 MB, free: 7.832 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.362e-05/0.4199, allocations: 31.59 kB / 449.2 MB, free: 7.816 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.655e-06/0.42, allocations: 3.844 kB / 449.2 MB, free: 7.816 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.094e-06/0.42, allocations: 3.844 kB / 449.2 MB, free: 7.816 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.771e-06/0.42, allocations: 1.641 kB / 449.2 MB, free: 7.816 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000749/0.4207, allocations: 0.6846 MB / 449.8 MB, free: 7.434 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.344e-06/0.4207, allocations: 3.906 kB / 449.8 MB, free: 7.434 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002625/0.421, allocations: 57.88 kB / 449.9 MB, free: 7.418 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002614/0.4213, allocations: 87.88 kB / 450 MB, free: 7.395 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.665e-05/0.4213, allocations: 0 / 450 MB, free: 7.395 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00122/0.4225, allocations: 1.696 MB / 451.7 MB, free: 6.094 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.624e-06/0.4226, allocations: 0 / 451.7 MB, free: 6.094 MB / 314.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0005029/0.4231, allocations: 481.6 kB / 452.2 MB, free: 5.875 MB / 314.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0006268/0.4237, allocations: 0.924 MB / 453.1 MB, free: 5.285 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.549e-05/0.4237, allocations: 100.6 kB / 453.2 MB, free: 5.176 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.341e-05/0.4238, allocations: 3.844 kB / 453.2 MB, free: 5.176 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001681/0.424, allocations: 7.953 kB / 453.2 MB, free: 5.172 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.816e-05/0.424, allocations: 15.14 kB / 453.2 MB, free: 5.168 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.313e-05/0.424, allocations: 7.953 kB / 453.2 MB, free: 5.164 MB / 314.7 MB Notification: Performance of sort global known variables: time 5.841e-05/0.4241, allocations: 128.4 kB / 453.3 MB, free: 5.082 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0009148/0.425, allocations: 103.3 kB / 453.4 MB, free: 5.055 MB / 314.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.0001/0.4251, allocations: 106.4 kB / 453.5 MB, free: 4.957 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0002415/0.4254, allocations: 178.5 kB / 453.7 MB, free: 4.949 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 1.733e-06/0.4254, allocations: 0 / 453.7 MB, free: 4.949 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000259/0.4256, allocations: 222.7 kB / 453.9 MB, free: 4.828 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001721/0.4258, allocations: 15.94 kB / 454 MB, free: 4.82 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009114/0.4267, allocations: 0.6562 MB / 454.6 MB, free: 4.387 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002705/0.427, allocations: 0.8312 MB / 455.4 MB, free: 19.62 MB / 330.7 MB Notification: Performance of SimCode: time 4.21e-07/0.427, allocations: 3.812 kB / 455.4 MB, free: 19.62 MB / 330.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