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: translateModel(Modelica.Electrical.Spice3.Examples.CoupledInductors,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|L1.iinternal|L2.iinternal|L3.iinternal",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.CoupledInductors") translateModel(Modelica.Electrical.Spice3.Examples.CoupledInductors,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|L1.iinternal|L2.iinternal|L3.iinternal",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.CoupledInductors") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001526/0.001525, allocations: 181.6 kB / 13.66 MB, free: 1.664 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.038/2.038, allocations: 205.2 MB / 219.4 MB, free: 14.29 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.001092/0.001091, allocations: 94.62 kB / 267.5 MB, free: 14.11 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.87e-05/2.9e-05, allocations: 3.984 kB / 321.5 MB, free: 17.86 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09551/0.09556, allocations: 47.57 MB / 369.1 MB, free: 2.227 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4183/0.5139, allocations: 76.86 MB / 445.9 MB, free: 340 kB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002228/0.5142, allocations: 71.77 kB / 446 MB, free: 300 kB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02364/0.5379, allocations: 5.419 MB / 451.4 MB, free: 11.71 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.483e-06/0.5379, allocations: 0 / 451.4 MB, free: 11.71 MB / 330.7 MB Notification: Performance of Transformations before backend: time 2.562e-05/0.5379, allocations: 8 kB / 451.4 MB, free: 11.7 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.001297/0.5393, allocations: 0.5832 MB / 452 MB, free: 11.1 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.338e-05/0.5393, allocations: 12.03 kB / 452 MB, free: 11.09 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001431/0.5395, allocations: 43.52 kB / 452.1 MB, free: 11.05 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004506/0.5399, allocations: 282.2 kB / 452.4 MB, free: 10.76 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.736e-05/0.54, allocations: 37.25 kB / 452.4 MB, free: 10.73 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.91e-05/0.5401, allocations: 42.69 kB / 452.4 MB, free: 10.71 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001/0.5411, allocations: 429.2 kB / 452.9 MB, free: 10.38 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.453e-05/0.5412, allocations: 3.984 kB / 452.9 MB, free: 10.38 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.716e-05/0.5412, allocations: 19.38 kB / 452.9 MB, free: 10.37 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.738e-05/0.5413, allocations: 12 kB / 452.9 MB, free: 10.36 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000718/0.542, allocations: 255.9 kB / 453.1 MB, free: 10.2 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002957/0.545, allocations: 1.327 MB / 454.5 MB, free: 9.055 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000614/0.5456, allocations: 231.2 kB / 454.7 MB, free: 8.895 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005147/0.5462, allocations: 190.7 kB / 454.9 MB, free: 8.762 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.658e-05/0.5462, allocations: 7.984 kB / 454.9 MB, free: 8.754 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.16e-05/0.5463, allocations: 33.31 kB / 454.9 MB, free: 8.715 MB / 330.7 MB Notification: Performance of pre-optimization done (n=29): time 3.075e-06/0.5463, allocations: 0 / 454.9 MB, free: 8.715 MB / 330.7 MB Notification: Performance of matching and sorting (n=29): time 0.0009219/0.5472, allocations: 285.7 kB / 455.2 MB, free: 8.492 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001305/0.5474, allocations: 235.3 kB / 455.4 MB, free: 8.207 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002845/0.5477, allocations: 193.8 kB / 455.6 MB, free: 8.039 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 5.094e-05/0.5477, allocations: 33.39 kB / 455.6 MB, free: 8.004 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001658/0.5479, allocations: 257.9 kB / 455.9 MB, free: 7.773 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001089/0.548, allocations: 98.98 kB / 456 MB, free: 7.688 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.174e-05/0.5481, allocations: 11.19 kB / 456 MB, free: 7.684 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001317/0.5482, allocations: 318.8 kB / 456.3 MB, free: 7.367 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002023/0.5484, allocations: 63.81 kB / 456.4 MB, free: 7.328 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002819/0.5487, allocations: 152.5 kB / 456.5 MB, free: 7.176 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000265/0.549, allocations: 86.94 kB / 456.6 MB, free: 7.121 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.437e-06/0.549, allocations: 0 / 456.6 MB, free: 7.121 MB / 330.7 MB Notification: Performance of matching and sorting (n=38) (initialization): time 0.0006176/0.5496, allocations: 249.3 kB / 456.9 MB, free: 6.93 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.058e-05/0.5497, allocations: 20 kB / 456.9 MB, free: 6.91 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.905e-06/0.5497, allocations: 0 / 456.9 MB, free: 6.91 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.171e-05/0.5497, allocations: 7.938 kB / 456.9 MB, free: 6.902 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006697/0.5504, allocations: 79.52 kB / 457 MB, free: 6.828 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.447e-05/0.5505, allocations: 4 kB / 457 MB, free: 6.824 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003312/0.5508, allocations: 35 kB / 457 MB, free: 6.797 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.153e-05/0.5508, allocations: 4 kB / 457 MB, free: 6.793 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.0002018/0.5511, allocations: 127.9 kB / 457.1 MB, free: 6.672 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.222e-05/0.5512, allocations: 27.7 kB / 457.2 MB, free: 6.645 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.86e-05/0.5513, allocations: 36.73 kB / 457.2 MB, free: 6.629 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.09e-06/0.5513, allocations: 0 / 457.2 MB, free: 6.629 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.376e-05/0.5513, allocations: 4 kB / 457.2 MB, free: 6.625 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.185e-06/0.5513, allocations: 3.984 kB / 457.2 MB, free: 6.621 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001652/0.553, allocations: 0.7625 MB / 458 MB, free: 5.957 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.15e-06/0.553, allocations: 4.031 kB / 458 MB, free: 5.953 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005217/0.5536, allocations: 55.91 kB / 458 MB, free: 5.898 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004952/0.5541, allocations: 88.75 kB / 458.1 MB, free: 5.809 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.36e-05/0.5541, allocations: 8 kB / 458.1 MB, free: 5.801 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002813/0.5569, allocations: 1.818 MB / 459.9 MB, free: 3.848 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.774e-06/0.557, allocations: 8.016 kB / 459.9 MB, free: 3.84 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001173/0.5582, allocations: 0.4953 MB / 460.4 MB, free: 3.316 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001068/0.5583, allocations: 96.86 kB / 460.5 MB, free: 3.203 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.172e-05/0.5584, allocations: 16.05 kB / 460.5 MB, free: 3.188 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003052/0.5587, allocations: 8 kB / 460.6 MB, free: 3.18 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.824e-05/0.5588, allocations: 23.92 kB / 460.6 MB, free: 3.156 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.415e-05/0.5589, allocations: 12 kB / 460.6 MB, free: 3.145 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0001995/0.5591, allocations: 152.4 kB / 460.7 MB, free: 2.996 MB / 330.7 MB Notification: Performance of sort global known variables: time 4.51e-07/0.5591, allocations: 0 / 460.7 MB, free: 2.996 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0005499/0.5596, allocations: 111.6 kB / 460.8 MB, free: 2.887 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.0001888/0.5598, allocations: 115.2 kB / 461 MB, free: 2.766 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0005793/0.5604, allocations: 187.9 kB / 461.1 MB, free: 2.582 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 6.532e-06/0.5604, allocations: 4.125 kB / 461.1 MB, free: 2.578 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005869/0.561, allocations: 270.2 kB / 461.4 MB, free: 2.301 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002915/0.5614, allocations: 20.48 kB / 461.4 MB, free: 2.281 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001697/0.5631, allocations: 0.7094 MB / 462.1 MB, free: 1.539 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004116/0.5635, allocations: 0.7986 MB / 462.9 MB, free: 0.7148 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001261/0.5636, allocations: 23.44 kB / 463 MB, free: 0.6914 MB / 330.7 MB Notification: Performance of SimCode: time 9.32e-07/0.5637, allocations: 0 / 463 MB, free: 0.6914 MB / 330.7 MB Notification: Performance of Templates: time 0.009543/0.5732, allocations: 3.837 MB / 466.8 MB, free: 12.85 MB / 346.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.CoupledInductors.makefile (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 & ./Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.CoupledInductors --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.CoupledInductors.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.CoupledInductors_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Spice3/Examples/CoupledInductors/CoupledInductors.csv","../files/Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.CoupledInductors.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches