Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.CompareTransformers.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.Analog.Examples.CompareTransformers,tolerance=1e-06,outputFormat="mat",numberOfIntervals=100000,variableFilter="time|basicTransformer.i1|basicTransformer.i2|inductor22.i",fileNamePrefix="Modelica_3.2.3_cpp_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_3.2.3_cpp_Modelica.Electrical.Analog.Examples.CompareTransformers") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0026/0.002604, allocations: 186.2 kB / 16.4 MB, free: 5.625 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 4.865/4.865, allocations: 205.4 MB / 222.5 MB, free: 13.85 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.001834/0.001834, allocations: 90.86 kB / 270.9 MB, free: 13.38 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006492/0.0006492, allocations: 8 kB / 327 MB, free: 15.1 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2698/0.2705, allocations: 47.58 MB / 374.5 MB, free: 15.44 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.CompareTransformers): time 0.008185/0.2787, allocations: 3.226 MB / 377.8 MB, free: 12.19 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.00351/0.2823, allocations: 0.9322 MB / 378.7 MB, free: 11.25 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006752/0.2831, allocations: 8 kB / 378.7 MB, free: 11.24 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002761/0.2834, allocations: 63.5 kB / 378.8 MB, free: 11.18 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001098/0.2845, allocations: 211.3 kB / 379 MB, free: 10.97 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000701/0.2853, allocations: 95.89 kB / 379.1 MB, free: 10.88 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.001739/0.287, allocations: 463.4 kB / 379.5 MB, free: 10.42 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005822/0.2877, allocations: 158.3 kB / 379.7 MB, free: 10.27 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006969/0.2884, allocations: 219.2 kB / 379.9 MB, free: 10.05 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005948/0.289, allocations: 254.9 kB / 380.1 MB, free: 9.801 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.000131/0.2892, allocations: 32 kB / 380.2 MB, free: 9.77 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000174/0.2893, allocations: 32 kB / 380.2 MB, free: 9.738 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001785/0.2895, allocations: 91.59 kB / 380.3 MB, free: 9.648 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002768/0.2898, allocations: 129.4 kB / 380.4 MB, free: 9.516 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001025/0.2909, allocations: 470.8 kB / 380.9 MB, free: 9.055 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.114e-06/0.2909, allocations: 0 / 380.9 MB, free: 9.055 MB / 282.7 MB Notification: Performance of FrontEnd: time 3.176e-06/0.2909, allocations: 3.938 kB / 380.9 MB, free: 9.051 MB / 282.7 MB Notification: Performance of Transformations before backend: time 1.733e-05/0.291, allocations: 0 / 380.9 MB, free: 9.051 MB / 282.7 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.002927/0.2939, allocations: 0.7909 MB / 381.7 MB, free: 8.211 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 7.007e-05/0.294, allocations: 12.03 kB / 381.7 MB, free: 8.199 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003189/0.2943, allocations: 63.34 kB / 381.7 MB, free: 8.137 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001041/0.2954, allocations: 350.6 kB / 382.1 MB, free: 7.754 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.865e-05/0.2955, allocations: 44.94 kB / 382.1 MB, free: 7.711 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001846/0.2957, allocations: 55.91 kB / 382.2 MB, free: 7.656 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001894/0.2976, allocations: 475.2 kB / 382.6 MB, free: 7.176 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.382e-05/0.2977, allocations: 0 / 382.6 MB, free: 7.176 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001118/0.2979, allocations: 20 kB / 382.7 MB, free: 7.156 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.794e-05/0.2979, allocations: 12 kB / 382.7 MB, free: 7.145 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001605/0.2995, allocations: 340.3 kB / 383 MB, free: 6.812 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006321/0.3059, allocations: 1.713 MB / 384.7 MB, free: 5.004 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001058/0.307, allocations: 261.1 kB / 385 MB, free: 4.73 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.745e-05/0.3071, allocations: 8 kB / 385 MB, free: 4.723 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.044e-05/0.3072, allocations: 42.5 kB / 385 MB, free: 4.672 MB / 282.7 MB Notification: Performance of pre-optimization done (n=31): time 5.481e-06/0.3072, allocations: 0 / 385 MB, free: 4.672 MB / 282.7 MB Notification: Performance of matching and sorting (n=32): time 0.004327/0.3116, allocations: 0.953 MB / 386 MB, free: 3.641 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.3e-05/0.3117, allocations: 85.11 kB / 386.1 MB, free: 3.539 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009732/0.3127, allocations: 381.6 kB / 386.4 MB, free: 3.156 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001029/0.3128, allocations: 37.7 kB / 386.5 MB, free: 3.113 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003601/0.3132, allocations: 337.9 kB / 386.8 MB, free: 2.773 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001904/0.3134, allocations: 106.5 kB / 386.9 MB, free: 2.668 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.101e-05/0.3135, allocations: 7.938 kB / 386.9 MB, free: 2.66 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0002246/0.3137, allocations: 326.8 kB / 387.2 MB, free: 2.332 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005848/0.3143, allocations: 108.8 kB / 387.3 MB, free: 2.227 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006401/0.315, allocations: 198.7 kB / 387.5 MB, free: 1.996 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006163/0.3156, allocations: 132.9 kB / 387.7 MB, free: 1.867 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.02e-06/0.3156, allocations: 4 kB / 387.7 MB, free: 1.863 MB / 282.7 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.001937/0.3176, allocations: 429.3 kB / 388.1 MB, free: 1.434 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.799e-05/0.3177, allocations: 7.984 kB / 388.1 MB, free: 1.426 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.402e-05/0.3178, allocations: 4 kB / 388.1 MB, free: 1.422 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007467/0.3185, allocations: 89.62 kB / 388.2 MB, free: 1.328 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008126/0.3194, allocations: 79.86 kB / 388.3 MB, free: 1.25 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.5096/0.8289, allocations: 2.854 MB / 391.1 MB, free: 17.97 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008732/0.8299, allocations: 22.84 kB / 391.1 MB, free: 17.97 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.308e-05/0.83, allocations: 19.02 kB / 391.2 MB, free: 17.97 MB / 282.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 5,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0004776/0.8305, allocations: 164.4 kB / 391.3 MB, free: 17.86 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002295/0.8308, allocations: 43.44 kB / 391.4 MB, free: 17.86 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001787/0.8309, allocations: 44.97 kB / 391.4 MB, free: 17.86 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.394e-05/0.831, allocations: 5.406 kB / 391.4 MB, free: 17.86 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.735e-05/0.831, allocations: 2.156 kB / 391.4 MB, free: 17.86 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.6e-05/0.831, allocations: 9.578 kB / 391.4 MB, free: 17.85 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003732/0.8348, allocations: 0.9433 MB / 392.4 MB, free: 17.46 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.231e-05/0.8349, allocations: 3.188 kB / 392.4 MB, free: 17.46 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005522/0.8354, allocations: 48.92 kB / 392.4 MB, free: 17.46 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007512/0.8362, allocations: 84.36 kB / 392.5 MB, free: 17.45 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.229e-05/0.8363, allocations: 6.969 kB / 392.5 MB, free: 17.45 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004266/0.8406, allocations: 2.871 MB / 395.4 MB, free: 14.87 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.182e-06/0.8407, allocations: 2.25 kB / 395.4 MB, free: 14.87 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002466/0.8432, allocations: 0.6379 MB / 396 MB, free: 14.5 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002713/0.8435, allocations: 118.7 kB / 396.1 MB, free: 14.38 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000155/0.8437, allocations: 5.891 kB / 396.1 MB, free: 14.38 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001078/0.8448, allocations: 36.06 kB / 396.2 MB, free: 14.37 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002427/0.8451, allocations: 32.59 kB / 396.2 MB, free: 14.36 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.602e-05/0.8452, allocations: 15.53 kB / 396.2 MB, free: 14.36 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0007997/0.846, allocations: 268.6 kB / 396.5 MB, free: 14.21 MB / 282.7 MB Notification: Performance of sort global known variables: time 1.162e-06/0.8461, allocations: 0 / 396.5 MB, free: 14.21 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.001615/0.8477, allocations: 116.4 kB / 396.6 MB, free: 14.2 MB / 282.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 5,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003097/0.8481, allocations: 103.9 kB / 396.7 MB, free: 14.11 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.002333/0.8504, allocations: 0.5253 MB / 397.2 MB, free: 13.8 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 1.352e-05/0.8505, allocations: 1.406 kB / 397.2 MB, free: 13.8 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001544/0.8521, allocations: 385.8 kB / 397.6 MB, free: 13.53 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00107/0.8532, allocations: 59.06 kB / 397.7 MB, free: 13.5 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00447/0.8578, allocations: 1.21 MB / 398.9 MB, free: 12.71 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006834/0.8585, allocations: 0.8464 MB / 399.7 MB, free: 12 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003107/0.8589, allocations: 31.84 kB / 399.7 MB, free: 11.99 MB / 282.7 MB Notification: Performance of SimCode: time 1.733e-06/0.8589, allocations: 5.219 kB / 399.8 MB, free: 11.99 MB / 282.7 MB Notification: Performance of Templates: time 0.0498/0.9087, allocations: 8.532 MB / 408.3 MB, free: 9.258 MB / 282.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.CompareTransformers.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.CompareTransformers.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.CompareTransformers.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.CompareTransformers.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.CompareTransformers.sim & ./Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.CompareTransformers --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.CompareTransformers.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.CompareTransformers_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Analog/Examples/CompareTransformers/CompareTransformers.csv","../files/Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.CompareTransformers.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches