Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CompareTransformers.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Electrical.Analog.Examples.CompareTransformers,tolerance=1e-06,outputFormat="mat",numberOfIntervals=100000,variableFilter="time|basicTransformer.i1|basicTransformer.i2|inductor22.i",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CompareTransformers") translateModel(Modelica.Electrical.Analog.Examples.CompareTransformers,tolerance=1e-06,outputFormat="mat",numberOfIntervals=100000,variableFilter="time|basicTransformer.i1|basicTransformer.i2|inductor22.i",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CompareTransformers") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001131/0.001137, allocations: 113.8 kB / 17.06 MB, free: 5.996 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002023/0.002023, allocations: 194.9 kB / 18.01 MB, free: 5.07 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.562/1.562, allocations: 222.9 MB / 241.7 MB, free: 15.15 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001031/0.001031, allocations: 55.91 kB / 351.3 MB, free: 3.199 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3557/0.3568, allocations: 49.43 MB / 400.8 MB, free: 8.73 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.CompareTransformers): time 0.00579/0.3626, allocations: 4.091 MB / 404.8 MB, free: 4.734 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001966/0.3646, allocations: 0.8724 MB / 405.7 MB, free: 3.855 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002334/0.3649, allocations: 11.94 kB / 405.7 MB, free: 3.844 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000301/0.3652, allocations: 95.06 kB / 405.8 MB, free: 3.75 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003994/0.3656, allocations: 178.4 kB / 406 MB, free: 3.574 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000421/0.3661, allocations: 143.7 kB / 406.1 MB, free: 3.434 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007259/0.3668, allocations: 0.6693 MB / 406.8 MB, free: 2.762 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003656/0.3672, allocations: 215 kB / 407 MB, free: 2.539 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003216/0.3675, allocations: 251 kB / 407.3 MB, free: 2.293 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003604/0.3679, allocations: 290.7 kB / 407.5 MB, free: 2.008 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 9.403e-05/0.368, allocations: 56 kB / 407.6 MB, free: 1.953 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000112/0.3681, allocations: 56 kB / 407.7 MB, free: 1.898 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001344/0.3683, allocations: 127.5 kB / 407.8 MB, free: 1.773 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002934/0.3686, allocations: 306.5 kB / 408.1 MB, free: 1.473 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000696/0.3693, allocations: 0.6494 MB / 408.7 MB, free: 0.8242 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.747e-06/0.3693, allocations: 0 / 408.7 MB, free: 0.8242 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.503e-06/0.3693, allocations: 0 / 408.7 MB, free: 0.8242 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.403e-05/0.3693, allocations: 4 kB / 408.7 MB, free: 0.8203 MB / 318.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 123 * Number of variables: 123 Notification: Performance of Generate backend data structure: time 0.001424/0.3707, allocations: 0.8684 MB / 409.6 MB, free: 15.9 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.37e-05/0.3708, allocations: 11.89 kB / 409.6 MB, free: 15.89 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001158/0.3709, allocations: 72.52 kB / 409.7 MB, free: 15.82 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005747/0.3715, allocations: 375.9 kB / 410 MB, free: 15.41 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.035e-05/0.3715, allocations: 37.38 kB / 410.1 MB, free: 15.38 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.022e-05/0.3716, allocations: 48.38 kB / 410.1 MB, free: 15.33 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008885/0.3725, allocations: 479.5 kB / 410.6 MB, free: 14.85 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.759e-05/0.3726, allocations: 0 / 410.6 MB, free: 14.85 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.976e-05/0.3726, allocations: 23.94 kB / 410.6 MB, free: 14.82 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.727e-05/0.3726, allocations: 12 kB / 410.6 MB, free: 14.81 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006663/0.3733, allocations: 340.3 kB / 411 MB, free: 14.48 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002647/0.376, allocations: 1.678 MB / 412.6 MB, free: 12.7 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000485/0.3765, allocations: 268.4 kB / 412.9 MB, free: 12.42 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000257/0.3767, allocations: 137.7 kB / 413 MB, free: 12.28 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.831e-05/0.3768, allocations: 15.92 kB / 413.1 MB, free: 12.27 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.344e-05/0.3768, allocations: 42.55 kB / 413.1 MB, free: 12.21 MB / 334.1 MB Notification: Performance of pre-optimization done (n=31): time 1.583e-06/0.3768, allocations: 0 / 413.1 MB, free: 12.21 MB / 334.1 MB Notification: Performance of matching and sorting (n=32): time 0.001967/0.3788, allocations: 0.9623 MB / 414.1 MB, free: 11.18 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.01e-05/0.3789, allocations: 89.09 kB / 414.1 MB, free: 11.07 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004796/0.3794, allocations: 381.6 kB / 414.5 MB, free: 10.7 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.682e-05/0.3794, allocations: 29.7 kB / 414.5 MB, free: 10.66 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002099/0.3796, allocations: 288.1 kB / 414.8 MB, free: 10.37 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.294e-05/0.3797, allocations: 127 kB / 415 MB, free: 10.25 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001185/0.3798, allocations: 78.08 kB / 415 MB, free: 10.16 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001415/0.38, allocations: 350.7 kB / 415.4 MB, free: 9.812 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002271/0.3802, allocations: 100.8 kB / 415.5 MB, free: 9.711 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002848/0.3805, allocations: 194.6 kB / 415.7 MB, free: 9.484 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000486/0.381, allocations: 306 kB / 416 MB, free: 9.152 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.684e-06/0.381, allocations: 0 / 416 MB, free: 9.152 MB / 334.1 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.0008552/0.3819, allocations: 453.3 kB / 416.4 MB, free: 8.699 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.611e-05/0.3819, allocations: 4 kB / 416.4 MB, free: 8.695 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.743e-06/0.3819, allocations: 4.312 kB / 416.4 MB, free: 8.691 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000349/0.3823, allocations: 81.66 kB / 416.5 MB, free: 8.605 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003155/0.3826, allocations: 75.89 kB / 416.6 MB, free: 8.531 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002715/0.3853, allocations: 3.135 MB / 419.7 MB, free: 5.121 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003176/0.3857, allocations: 19.95 kB / 419.7 MB, free: 5.102 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.82e-05/0.3857, allocations: 16 kB / 419.7 MB, free: 5.086 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * 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 (45): * Single equations (assignments): 43 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,5,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0002487/0.3859, allocations: 165.7 kB / 419.9 MB, free: 4.914 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.524e-05/0.3861, allocations: 43.72 kB / 419.9 MB, free: 4.871 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.331e-05/0.3862, allocations: 55.52 kB / 420 MB, free: 4.805 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.669e-06/0.3862, allocations: 4 kB / 420 MB, free: 4.801 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.338e-06/0.3862, allocations: 3.938 kB / 420 MB, free: 4.797 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.127e-06/0.3862, allocations: 0 / 420 MB, free: 4.797 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001389/0.3876, allocations: 0.9279 MB / 420.9 MB, free: 3.809 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.366e-06/0.3876, allocations: 4 kB / 420.9 MB, free: 3.805 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001915/0.3878, allocations: 52.09 kB / 421 MB, free: 3.754 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000287/0.3881, allocations: 85.59 kB / 421.1 MB, free: 3.664 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.383e-05/0.3881, allocations: 19.94 kB / 421.1 MB, free: 3.645 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002576/0.3907, allocations: 3.119 MB / 424.2 MB, free: 260 kB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.629e-06/0.3907, allocations: 8.031 kB / 424.2 MB, free: 252 kB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001063/0.3918, allocations: 0.6105 MB / 424.8 MB, free: 15.61 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001481/0.392, allocations: 124.8 kB / 424.9 MB, free: 15.47 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.12e-05/0.392, allocations: 7.938 kB / 425 MB, free: 15.46 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003937/0.3924, allocations: 31.92 kB / 425 MB, free: 15.43 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.727e-05/0.3925, allocations: 27.95 kB / 425 MB, free: 15.41 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.66e-05/0.3926, allocations: 12 kB / 425 MB, free: 15.39 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0003752/0.393, allocations: 275.1 kB / 425.3 MB, free: 15.12 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.393, allocations: 0 / 425.3 MB, free: 15.12 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0007178/0.3937, allocations: 116 kB / 425.4 MB, free: 15.01 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 3 (inductor22.i,basicTransformer.i1,basicTransformer.i2) * 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 (26): * Single equations (assignments): 24 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,5,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0001963/0.3939, allocations: 111.2 kB / 425.5 MB, free: 14.89 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.00105/0.3949, allocations: 0.5088 MB / 426 MB, free: 14.36 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 5.761e-06/0.395, allocations: 0 / 426 MB, free: 14.36 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006373/0.3956, allocations: 389.8 kB / 426.4 MB, free: 13.95 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005228/0.3961, allocations: 57.52 kB / 426.5 MB, free: 13.89 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00178/0.3979, allocations: 0.9643 MB / 427.4 MB, free: 12.9 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004336/0.3984, allocations: 0.8392 MB / 428.3 MB, free: 12.04 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.000165/0.3986, allocations: 39.3 kB / 428.3 MB, free: 12 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.587e-05/0.3986, allocations: 27.44 kB / 428.3 MB, free: 11.97 MB / 350.1 MB Notification: Performance of SimCode: time 1.062e-06/0.3987, allocations: 0 / 428.3 MB, free: 11.97 MB / 350.1 MB Notification: Performance of Templates: time 0.009833/0.4085, allocations: 4.754 MB / 433.1 MB, free: 7.258 MB / 350.1 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CompareTransformers.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CompareTransformers.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CompareTransformers.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CompareTransformers.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CompareTransformers.sim & ./Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CompareTransformers -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CompareTransformers.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CompareTransformers_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/CompareTransformers/CompareTransformers.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CompareTransformers.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches