Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Spice3.Examples.CoupledInductors.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) 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) 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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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_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_Modelica.Electrical.Spice3.Examples.CoupledInductors") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001495/0.001495, allocations: 106 kB / 17.63 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001739/0.001739, allocations: 214.4 kB / 18.58 MB, free: 4.406 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.355/1.355, allocations: 227.4 MB / 246.8 MB, free: 10.55 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001215/0.001215, allocations: 60.25 kB / 306.9 MB, free: 0.625 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08579/0.08703, allocations: 50.53 MB / 357.5 MB, free: 14.1 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.CoupledInductors): time 0.003872/0.09093, allocations: 2.844 MB / 360.3 MB, free: 11.24 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001342/0.0923, allocations: 0.7595 MB / 361.1 MB, free: 10.47 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001771/0.09251, allocations: 8 kB / 361.1 MB, free: 10.46 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001407/0.09266, allocations: 63.42 kB / 361.1 MB, free: 10.4 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002408/0.09291, allocations: 99.03 kB / 361.2 MB, free: 10.3 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003814/0.0933, allocations: 127.8 kB / 361.4 MB, free: 10.18 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.000431/0.09374, allocations: 446.8 kB / 361.8 MB, free: 9.738 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000327/0.09408, allocations: 220.9 kB / 362 MB, free: 9.52 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002682/0.09435, allocations: 183.4 kB / 362.2 MB, free: 9.34 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002335/0.0946, allocations: 211.1 kB / 362.4 MB, free: 9.133 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 6.831e-05/0.09467, allocations: 48 kB / 362.4 MB, free: 9.086 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001106/0.09479, allocations: 48 kB / 362.5 MB, free: 9.039 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 7.436e-05/0.09487, allocations: 103.7 kB / 362.6 MB, free: 8.938 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000183/0.09506, allocations: 219 kB / 362.8 MB, free: 8.723 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004403/0.0955, allocations: 0.4985 MB / 363.3 MB, free: 8.223 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.835e-06/0.09552, allocations: 0 / 363.3 MB, free: 8.223 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.083e-06/0.09552, allocations: 0 / 363.3 MB, free: 8.223 MB / 302.1 MB Notification: Performance of Transformations before backend: time 8.717e-06/0.09554, allocations: 0 / 363.3 MB, free: 8.223 MB / 302.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.001017/0.09656, allocations: 0.6904 MB / 364 MB, free: 7.48 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.184e-05/0.0966, allocations: 8.031 kB / 364 MB, free: 7.473 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002315/0.09683, allocations: 56.45 kB / 364.1 MB, free: 7.418 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002731/0.09712, allocations: 282 kB / 364.3 MB, free: 7.102 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.396e-05/0.09716, allocations: 37.38 kB / 364.4 MB, free: 7.066 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.888e-05/0.09723, allocations: 44.28 kB / 364.4 MB, free: 7.023 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006514/0.09789, allocations: 459.6 kB / 364.9 MB, free: 6.543 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.788e-05/0.09792, allocations: 4 kB / 364.9 MB, free: 6.539 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.816e-05/0.09797, allocations: 16 kB / 364.9 MB, free: 6.523 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.019e-05/0.09798, allocations: 8 kB / 364.9 MB, free: 6.516 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004964/0.09848, allocations: 287.9 kB / 365.2 MB, free: 6.234 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001885/0.1004, allocations: 1.307 MB / 366.5 MB, free: 4.84 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004197/0.1008, allocations: 234.3 kB / 366.7 MB, free: 4.605 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003572/0.1012, allocations: 197.9 kB / 366.9 MB, free: 4.41 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.422e-05/0.1012, allocations: 8 kB / 366.9 MB, free: 4.402 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.163e-05/0.1012, allocations: 42.44 kB / 366.9 MB, free: 4.352 MB / 302.1 MB Notification: Performance of pre-optimization done (n=29): time 1.733e-06/0.1013, allocations: 0 / 366.9 MB, free: 4.352 MB / 302.1 MB Notification: Performance of matching and sorting (n=29): time 0.001317/0.1026, allocations: 0.5463 MB / 367.5 MB, free: 3.777 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001039/0.1027, allocations: 239.3 kB / 367.7 MB, free: 3.488 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000184/0.1029, allocations: 210.7 kB / 367.9 MB, free: 3.273 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.473e-05/0.1029, allocations: 33.7 kB / 368 MB, free: 3.234 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001258/0.103, allocations: 204.2 kB / 368.2 MB, free: 3.031 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.452e-05/0.1031, allocations: 98.47 kB / 368.3 MB, free: 2.934 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.444e-05/0.1032, allocations: 61.7 kB / 368.3 MB, free: 2.867 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.000107/0.1033, allocations: 330.8 kB / 368.6 MB, free: 2.535 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001472/0.1035, allocations: 79.7 kB / 368.7 MB, free: 2.457 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000214/0.1037, allocations: 156.5 kB / 368.9 MB, free: 2.273 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003233/0.104, allocations: 203.1 kB / 369.1 MB, free: 2.066 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.144e-06/0.1041, allocations: 4 kB / 369.1 MB, free: 2.062 MB / 302.1 MB Notification: Performance of matching and sorting (n=38) (initialization): time 0.0004327/0.1045, allocations: 273.1 kB / 369.3 MB, free: 1.789 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.377e-05/0.1045, allocations: 4 kB / 369.3 MB, free: 1.785 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.262e-06/0.1045, allocations: 4 kB / 369.3 MB, free: 1.781 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.254e-05/0.1045, allocations: 0 / 369.3 MB, free: 1.781 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003326/0.1049, allocations: 83.89 kB / 369.4 MB, free: 1.699 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.372e-06/0.1049, allocations: 0 / 369.4 MB, free: 1.699 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001573/0.1051, allocations: 31.69 kB / 369.5 MB, free: 1.668 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.911e-05/0.1051, allocations: 12 kB / 369.5 MB, free: 1.656 MB / 302.1 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001372/0.1052, allocations: 161.8 kB / 369.6 MB, free: 1.488 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.237e-05/0.1053, allocations: 27.66 kB / 369.7 MB, free: 1.461 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.986e-05/0.1054, allocations: 30.66 kB / 369.7 MB, free: 1.43 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.959e-06/0.1054, allocations: 4 kB / 369.7 MB, free: 1.426 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.494e-06/0.1054, allocations: 0 / 369.7 MB, free: 1.426 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.943e-06/0.1054, allocations: 11.91 kB / 369.7 MB, free: 1.414 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009772/0.1064, allocations: 0.7751 MB / 370.5 MB, free: 0.5781 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.517e-06/0.1064, allocations: 0 / 370.5 MB, free: 0.5781 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002389/0.1066, allocations: 59.84 kB / 370.5 MB, free: 0.5195 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002836/0.1069, allocations: 84.8 kB / 370.6 MB, free: 444 kB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.903e-05/0.107, allocations: 8 kB / 370.6 MB, free: 436 kB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1547/0.2616, allocations: 1.965 MB / 372.6 MB, free: 18.79 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.425e-06/0.2616, allocations: 0.9375 kB / 372.6 MB, free: 18.79 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008045/0.2625, allocations: 0.5006 MB / 373.1 MB, free: 18.64 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.114e-05/0.2625, allocations: 103.9 kB / 373.2 MB, free: 18.54 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.662e-05/0.2626, allocations: 8.297 kB / 373.2 MB, free: 18.54 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001632/0.2627, allocations: 10.2 kB / 373.2 MB, free: 18.54 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.89e-05/0.2628, allocations: 33.09 kB / 373.2 MB, free: 18.54 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.661e-05/0.2628, allocations: 11.08 kB / 373.3 MB, free: 18.54 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001277/0.263, allocations: 149.5 kB / 373.4 MB, free: 18.46 MB / 302.1 MB Notification: Performance of sort global known variables: time 1e-07/0.263, allocations: 0 / 373.4 MB, free: 18.46 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004099/0.2634, allocations: 110.1 kB / 373.5 MB, free: 18.45 MB / 302.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 () * 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 (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(2,10,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0001059/0.2635, allocations: 102.6 kB / 373.6 MB, free: 18.36 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0004747/0.264, allocations: 219.5 kB / 373.8 MB, free: 18.36 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.755e-06/0.264, allocations: 1.156 kB / 373.8 MB, free: 18.36 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000421/0.2644, allocations: 272.6 kB / 374.1 MB, free: 18.22 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004123/0.2648, allocations: 37.31 kB / 374.1 MB, free: 18.21 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001136/0.266, allocations: 0.8435 MB / 375 MB, free: 17.7 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002341/0.2662, allocations: 0.7887 MB / 375.8 MB, free: 17 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001056/0.2664, allocations: 28.56 kB / 375.8 MB, free: 16.99 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.258e-05/0.2664, allocations: 22.22 kB / 375.8 MB, free: 16.98 MB / 302.1 MB Notification: Performance of SimCode: time 2.2e-07/0.2664, allocations: 0 / 375.8 MB, free: 16.98 MB / 302.1 MB Notification: Performance of Templates: time 0.006891/0.2733, allocations: 3.084 MB / 378.9 MB, free: 16.77 MB / 302.1 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Spice3.Examples.CoupledInductors.makefile (rm -f Modelica_trunk_Modelica.Electrical.Spice3.Examples.CoupledInductors.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Spice3.Examples.CoupledInductors.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Spice3.Examples.CoupledInductors.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Spice3.Examples.CoupledInductors.sim & ./Modelica_trunk_Modelica.Electrical.Spice3.Examples.CoupledInductors -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Spice3.Examples.CoupledInductors.pipe 2>&1) diffSimulationResults("Modelica_trunk_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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Spice3.Examples.CoupledInductors.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches