Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Electrical.Spice3.Examples.CoupledInductors.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/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_trunk_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_trunk_cpp_Modelica.Electrical.Spice3.Examples.CoupledInductors") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001604/0.001604, allocations: 191.8 kB / 17.37 MB, free: 4.406 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.303/1.303, allocations: 226.5 MB / 244.7 MB, free: 6.492 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007546/0.0007545, allocations: 104.7 kB / 296.8 MB, free: 6.688 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002154/0.0002155, allocations: 12 kB / 356.7 MB, free: 10.72 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1946/0.1948, allocations: 51.3 MB / 408 MB, free: 27.7 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.CoupledInductors): time 0.001904/0.1967, allocations: 2.37 MB / 410.4 MB, free: 25.32 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0008485/0.1976, allocations: 0.7233 MB / 411.1 MB, free: 24.6 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001063/0.1977, allocations: 8 kB / 411.1 MB, free: 24.59 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 6.537e-05/0.1978, allocations: 47.67 kB / 411.2 MB, free: 24.54 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001645/0.198, allocations: 76.38 kB / 411.3 MB, free: 24.47 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002683/0.1982, allocations: 97.23 kB / 411.4 MB, free: 24.38 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002793/0.1985, allocations: 410.8 kB / 411.8 MB, free: 23.97 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002516/0.1988, allocations: 190.4 kB / 411.9 MB, free: 23.79 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001757/0.199, allocations: 147.5 kB / 412.1 MB, free: 23.64 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001472/0.1991, allocations: 167.2 kB / 412.3 MB, free: 23.48 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 3.59e-05/0.1992, allocations: 24 kB / 412.3 MB, free: 23.46 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 7.87e-05/0.1993, allocations: 39.98 kB / 412.3 MB, free: 23.42 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 4.025e-05/0.1993, allocations: 63.77 kB / 412.4 MB, free: 23.36 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001109/0.1994, allocations: 206.8 kB / 412.6 MB, free: 23.15 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002367/0.1997, allocations: 387.8 kB / 413 MB, free: 22.77 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.31e-06/0.1997, allocations: 0 / 413 MB, free: 22.77 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.743e-06/0.1997, allocations: 0 / 413 MB, free: 22.77 MB / 298.7 MB Notification: Performance of Transformations before backend: time 5.831e-06/0.1997, allocations: 0 / 413 MB, free: 22.77 MB / 298.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.0007507/0.2005, allocations: 0.6164 MB / 413.6 MB, free: 22.1 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.402e-05/0.2005, allocations: 8.031 kB / 413.6 MB, free: 22.09 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001985/0.2007, allocations: 68.36 kB / 413.7 MB, free: 22.03 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001998/0.2009, allocations: 284.3 kB / 413.9 MB, free: 21.71 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.108e-05/0.2009, allocations: 29.38 kB / 414 MB, free: 21.68 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.422e-05/0.201, allocations: 44.38 kB / 414 MB, free: 21.64 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005462/0.2015, allocations: 455.6 kB / 414.4 MB, free: 21.16 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.613e-05/0.2016, allocations: 4 kB / 414.4 MB, free: 21.16 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.333e-05/0.2016, allocations: 16 kB / 414.5 MB, free: 21.14 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.556e-06/0.2016, allocations: 12 kB / 414.5 MB, free: 21.13 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004141/0.202, allocations: 275.9 kB / 414.7 MB, free: 20.86 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001387/0.2034, allocations: 1.318 MB / 416.1 MB, free: 19.46 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003817/0.2038, allocations: 238.7 kB / 416.3 MB, free: 19.21 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002886/0.2041, allocations: 200.6 kB / 416.5 MB, free: 19.02 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.373e-05/0.2042, allocations: 4 kB / 416.5 MB, free: 19.01 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.854e-05/0.2042, allocations: 46.5 kB / 416.5 MB, free: 18.96 MB / 298.7 MB Notification: Performance of pre-optimization done (n=29): time 2.164e-06/0.2042, allocations: 0 / 416.5 MB, free: 18.96 MB / 298.7 MB Notification: Performance of matching and sorting (n=29): time 0.00115/0.2054, allocations: 0.5472 MB / 417.1 MB, free: 18.38 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.772e-05/0.2054, allocations: 239.3 kB / 417.3 MB, free: 18.09 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001373/0.2056, allocations: 207 kB / 417.5 MB, free: 17.88 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.911e-05/0.2056, allocations: 33.7 kB / 417.6 MB, free: 17.84 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.437e-05/0.2057, allocations: 200.2 kB / 417.8 MB, free: 17.64 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.488e-05/0.2057, allocations: 106.5 kB / 417.9 MB, free: 17.54 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.29e-05/0.2057, allocations: 4 kB / 417.9 MB, free: 17.54 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 4.783e-05/0.2058, allocations: 338.8 kB / 418.2 MB, free: 17.2 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001294/0.2059, allocations: 75.72 kB / 418.3 MB, free: 17.12 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000157/0.2061, allocations: 157.2 kB / 418.4 MB, free: 16.94 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002665/0.2064, allocations: 204.2 kB / 418.6 MB, free: 16.73 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.973e-06/0.2064, allocations: 0 / 418.6 MB, free: 16.73 MB / 298.7 MB Notification: Performance of matching and sorting (n=38) (initialization): time 0.0003553/0.2067, allocations: 281 kB / 418.9 MB, free: 16.45 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.361e-05/0.2068, allocations: 7.938 kB / 418.9 MB, free: 16.44 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.71e-06/0.2068, allocations: 7.984 kB / 418.9 MB, free: 16.43 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.537e-05/0.2068, allocations: 0 / 418.9 MB, free: 16.43 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002928/0.2071, allocations: 75.91 kB / 419 MB, free: 16.36 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.605e-06/0.2071, allocations: 7.984 kB / 419 MB, free: 16.35 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001419/0.2072, allocations: 31.69 kB / 419 MB, free: 16.32 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.657e-05/0.2073, allocations: 16.06 kB / 419 MB, free: 16.3 MB / 298.7 MB 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 () * Number of clocked 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.0001114/0.2074, allocations: 149.8 kB / 419.2 MB, free: 16.15 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.105e-05/0.2074, allocations: 23.75 kB / 419.2 MB, free: 16.12 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.865e-05/0.2075, allocations: 38.64 kB / 419.2 MB, free: 16.09 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.886e-06/0.2075, allocations: 0 / 419.2 MB, free: 16.09 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.975e-06/0.2075, allocations: 4 kB / 419.2 MB, free: 16.08 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.278e-06/0.2075, allocations: 0 / 419.2 MB, free: 16.08 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008166/0.2084, allocations: 0.7749 MB / 420 MB, free: 15.25 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.755e-06/0.2084, allocations: 0 / 420 MB, free: 15.25 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002249/0.2086, allocations: 59.84 kB / 420.1 MB, free: 15.19 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00028/0.2089, allocations: 88.19 kB / 420.2 MB, free: 15.1 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.798e-05/0.2089, allocations: 8 kB / 420.2 MB, free: 15.09 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001305/0.2102, allocations: 1.827 MB / 422 MB, free: 13.13 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.205e-06/0.2102, allocations: 4.031 kB / 422 MB, free: 13.13 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005837/0.2108, allocations: 0.5068 MB / 422.5 MB, free: 12.6 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.612e-05/0.2109, allocations: 108.9 kB / 422.6 MB, free: 12.47 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.984e-05/0.2109, allocations: 4 kB / 422.6 MB, free: 12.47 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001453/0.2111, allocations: 15.98 kB / 422.6 MB, free: 12.45 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.218e-05/0.2111, allocations: 23.97 kB / 422.7 MB, free: 12.43 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.211e-05/0.2112, allocations: 4 kB / 422.7 MB, free: 12.43 MB / 298.7 MB Notification: Performance of sorting global known variables: time 8.358e-05/0.2112, allocations: 148.4 kB / 422.8 MB, free: 12.28 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.21e-07/0.2112, allocations: 0 / 422.8 MB, free: 12.28 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0003349/0.2116, allocations: 115.5 kB / 422.9 MB, free: 12.17 MB / 298.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 () * Number of clocked 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 9.915e-05/0.2117, allocations: 107.2 kB / 423 MB, free: 12.05 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0003557/0.2121, allocations: 219.7 kB / 423.2 MB, free: 11.84 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.114e-06/0.2121, allocations: 0 / 423.2 MB, free: 11.84 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003322/0.2124, allocations: 278.6 kB / 423.5 MB, free: 11.55 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003594/0.2128, allocations: 39.86 kB / 423.6 MB, free: 11.52 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001018/0.2138, allocations: 1.088 MB / 424.6 MB, free: 10.4 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001763/0.214, allocations: 0.7833 MB / 425.4 MB, free: 9.586 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.02e-05/0.2141, allocations: 19.44 kB / 425.4 MB, free: 9.566 MB / 298.7 MB Notification: Performance of SimCode: time 2.4e-07/0.2141, allocations: 4 kB / 425.4 MB, free: 9.562 MB / 298.7 MB Notification: Performance of Templates: time 0.004379/0.2185, allocations: 3.991 MB / 429.4 MB, free: 5.57 MB / 298.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Electrical.Spice3.Examples.CoupledInductors.makefile (rm -f Modelica_trunk_cpp_Modelica.Electrical.Spice3.Examples.CoupledInductors.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Electrical.Spice3.Examples.CoupledInductors.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Electrical.Spice3.Examples.CoupledInductors.pipe >> ../files/Modelica_trunk_cpp_Modelica.Electrical.Spice3.Examples.CoupledInductors.sim & ./Modelica_trunk_cpp_Modelica.Electrical.Spice3.Examples.CoupledInductors --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Electrical.Spice3.Examples.CoupledInductors.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Electrical.Spice3.Examples.CoupledInductors_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Spice3/Examples/CoupledInductors/CoupledInductors.csv","../files/Modelica_trunk_cpp_Modelica.Electrical.Spice3.Examples.CoupledInductors.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches