Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Analog.Examples.CompareTransformers.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001315/0.001315, allocations: 83.58 kB / 21.18 MB, free: 3.383 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.00131/0.00131, allocations: 161 kB / 24.56 MB, free: 16 kB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.9955/0.9955, allocations: 177.1 MB / 205 MB, free: 5.641 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(Modelica.Electrical.Analog.Examples.CompareTransformers,tolerance=1e-06,outputFormat="mat",numberOfIntervals=50000,variableFilter="time|basicTransformer.i1|basicTransformer.i2|inductor22.i",fileNamePrefix="Modelica_4.1.0_Modelica.Electrical.Analog.Examples.CompareTransformers") translateModel(Modelica.Electrical.Analog.Examples.CompareTransformers,tolerance=1e-06,outputFormat="mat",numberOfIntervals=50000,variableFilter="time|basicTransformer.i1|basicTransformer.i2|inductor22.i",fileNamePrefix="Modelica_4.1.0_Modelica.Electrical.Analog.Examples.CompareTransformers") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.312e-06/1.312e-06, allocations: 0 / 273 MB, free: 1.52 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.198e-05/2.329e-05, allocations: 2.312 kB / 273 MB, free: 1.516 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.CompareTransformers): time 0.004085/0.004108, allocations: 4.069 MB / 277.1 MB, free: 13.43 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001782/0.00589, allocations: 0.9423 MB / 278 MB, free: 12.48 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003102/0.0062, allocations: 11.94 kB / 278 MB, free: 12.46 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002419/0.006442, allocations: 91.08 kB / 278.1 MB, free: 12.38 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003192/0.006761, allocations: 194.2 kB / 278.3 MB, free: 12.18 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003911/0.007153, allocations: 159.7 kB / 278.5 MB, free: 12.03 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0006021/0.007755, allocations: 0.7041 MB / 279.2 MB, free: 11.32 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002832/0.008038, allocations: 135.7 kB / 279.3 MB, free: 11.18 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006424/0.00868, allocations: 399 kB / 279.7 MB, free: 10.79 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002525/0.008933, allocations: 219.3 kB / 279.9 MB, free: 10.57 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 7.05e-05/0.009003, allocations: 56 kB / 280 MB, free: 10.52 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001042/0.009108, allocations: 60 kB / 280 MB, free: 10.46 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 7.208e-05/0.00918, allocations: 135.4 kB / 280.2 MB, free: 10.32 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001511/0.009331, allocations: 215.4 kB / 280.4 MB, free: 10.11 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004216/0.009752, allocations: 446.3 kB / 280.8 MB, free: 9.676 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.995e-06/0.009755, allocations: 0 / 280.8 MB, free: 9.676 MB / 266.7 MB Notification: Performance of FrontEnd: time 8.92e-07/0.009756, allocations: 0 / 280.8 MB, free: 9.676 MB / 266.7 MB Notification: Performance of Transformations before backend: time 6.532e-06/0.009763, allocations: 0 / 280.8 MB, free: 9.676 MB / 266.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.001198/0.01096, allocations: 0.9085 MB / 281.7 MB, free: 8.73 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.538e-05/0.01101, allocations: 8.031 kB / 281.7 MB, free: 8.723 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002794/0.01129, allocations: 124.5 kB / 281.8 MB, free: 8.602 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004614/0.01175, allocations: 324.2 kB / 282.2 MB, free: 8.258 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.657e-05/0.01178, allocations: 37.38 kB / 282.2 MB, free: 8.219 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.925e-05/0.01186, allocations: 52.33 kB / 282.2 MB, free: 8.168 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006725/0.01253, allocations: 0.5422 MB / 282.8 MB, free: 7.574 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.458e-05/0.01255, allocations: 4.125 kB / 282.8 MB, free: 7.57 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.088e-05/0.01259, allocations: 20.38 kB / 282.8 MB, free: 7.551 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.776e-05/0.01261, allocations: 15.94 kB / 282.8 MB, free: 7.535 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003464/0.01295, allocations: 182.8 kB / 283 MB, free: 7.355 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002046/0.015, allocations: 1.578 MB / 284.6 MB, free: 5.691 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003385/0.01534, allocations: 234 kB / 284.8 MB, free: 5.438 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001443/0.01548, allocations: 103.6 kB / 284.9 MB, free: 5.328 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.47e-05/0.01551, allocations: 4 kB / 284.9 MB, free: 5.324 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.051e-05/0.01554, allocations: 45.39 kB / 285 MB, free: 5.27 MB / 266.7 MB Notification: Performance of pre-optimization done (n=31): time 1.483e-06/0.01554, allocations: 0 / 285 MB, free: 5.27 MB / 266.7 MB Notification: Performance of matching and sorting (n=32): time 0.007393/0.02293, allocations: 0.703 MB / 285.7 MB, free: 4.523 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.882e-05/0.02297, allocations: 85.09 kB / 285.7 MB, free: 4.422 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003516/0.02332, allocations: 402.6 kB / 286.1 MB, free: 4.012 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.311e-05/0.02335, allocations: 33.7 kB / 286.2 MB, free: 3.973 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001741/0.02352, allocations: 346.8 kB / 286.5 MB, free: 3.629 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.208e-05/0.02359, allocations: 119 kB / 286.6 MB, free: 3.512 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.979e-05/0.02369, allocations: 75.86 kB / 286.7 MB, free: 3.43 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001479/0.02384, allocations: 0.5157 MB / 287.2 MB, free: 2.902 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00011/0.02395, allocations: 52.95 kB / 287.3 MB, free: 2.852 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001767/0.02413, allocations: 185.1 kB / 287.5 MB, free: 2.617 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003051/0.02443, allocations: 270.2 kB / 287.7 MB, free: 2.309 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.164e-06/0.02443, allocations: 0 / 287.7 MB, free: 2.309 MB / 266.7 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.0005512/0.02498, allocations: 364.2 kB / 288.1 MB, free: 1.938 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.208e-05/0.02501, allocations: 11.98 kB / 288.1 MB, free: 1.926 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.035e-06/0.02502, allocations: 4 kB / 288.1 MB, free: 1.922 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006399/0.03141, allocations: 103.6 kB / 288.2 MB, free: 1.812 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000239/0.03165, allocations: 87.83 kB / 288.3 MB, free: 1.727 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002076/0.03373, allocations: 3.854 MB / 292.1 MB, free: 13.62 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001686/0.0339, allocations: 19.89 kB / 292.1 MB, free: 13.61 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.302e-05/0.03392, allocations: 16 kB / 292.2 MB, free: 13.59 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 (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.0001317/0.03405, allocations: 180.5 kB / 292.3 MB, free: 13.4 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.73e-05/0.03414, allocations: 51.7 kB / 292.4 MB, free: 13.35 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.605e-05/0.03419, allocations: 47.3 kB / 292.4 MB, free: 13.31 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.857e-06/0.03419, allocations: 4 kB / 292.4 MB, free: 13.3 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.241e-06/0.0342, allocations: 0 / 292.4 MB, free: 13.3 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.829e-06/0.0342, allocations: 11.95 kB / 292.5 MB, free: 13.29 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006951/0.04115, allocations: 0.8237 MB / 293.3 MB, free: 12.42 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.384e-06/0.04115, allocations: 0 / 293.3 MB, free: 12.42 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001242/0.04128, allocations: 43.98 kB / 293.3 MB, free: 12.38 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003392/0.04162, allocations: 107.2 kB / 293.4 MB, free: 12.26 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.291e-05/0.04164, allocations: 11.98 kB / 293.4 MB, free: 12.25 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007894/0.04954, allocations: 3.855 MB / 297.3 MB, free: 8.156 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.375e-06/0.04954, allocations: 4.156 kB / 297.3 MB, free: 8.152 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005786/0.05012, allocations: 0.6044 MB / 297.9 MB, free: 7.523 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.277e-05/0.05017, allocations: 43.62 kB / 297.9 MB, free: 7.48 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.265e-05/0.0502, allocations: 8 kB / 297.9 MB, free: 7.473 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000221/0.05042, allocations: 23.98 kB / 298 MB, free: 7.449 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.251e-05/0.05049, allocations: 27.95 kB / 298 MB, free: 7.422 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.638e-05/0.0505, allocations: 8.188 kB / 298 MB, free: 7.414 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0002271/0.05073, allocations: 279.1 kB / 298.3 MB, free: 7.141 MB / 282.7 MB Notification: Performance of sort global known variables: time 9e-08/0.05073, allocations: 0 / 298.3 MB, free: 7.141 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0005263/0.05126, allocations: 119.9 kB / 298.4 MB, free: 7.023 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 (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.0001323/0.05139, allocations: 111.2 kB / 298.5 MB, free: 6.906 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.000645/0.05203, allocations: 0.5489 MB / 299.1 MB, free: 6.32 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 2.154e-06/0.05203, allocations: 0 / 299.1 MB, free: 6.32 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.006397/0.05843, allocations: 463.2 kB / 299.5 MB, free: 5.828 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004369/0.05887, allocations: 53.98 kB / 299.6 MB, free: 5.777 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00152/0.06039, allocations: 0.8908 MB / 300.4 MB, free: 4.848 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.664e-05/0.06049, allocations: 117.9 kB / 300.6 MB, free: 4.707 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0001232/0.06061, allocations: 43.25 kB / 300.6 MB, free: 4.668 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.224e-05/0.06068, allocations: 32.5 kB / 300.6 MB, free: 4.637 MB / 282.7 MB Notification: Performance of SimCode: time 9.42e-07/0.06068, allocations: 4 kB / 300.6 MB, free: 4.633 MB / 282.7 MB Notification: Performance of Templates: time 0.02049/0.08117, allocations: 4.545 MB / 305.2 MB, free: 160 kB / 282.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Electrical.Analog.Examples.CompareTransformers.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Electrical.Analog.Examples.CompareTransformers.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Analog.Examples.CompareTransformers.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Analog.Examples.CompareTransformers.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Analog.Examples.CompareTransformers.sim & ./Modelica_4.1.0_Modelica.Electrical.Analog.Examples.CompareTransformers -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Electrical.Analog.Examples.CompareTransformers.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Analog.Examples.CompareTransformers_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Analog/Examples/CompareTransformers/CompareTransformers.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.5234083239920437]