Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Transformer.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001904/0.001904, allocations: 89.06 kB / 20.68 MB, free: 1.02 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002424/0.002424, allocations: 158.7 kB / 23.95 MB, free: 4.152 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.497/1.497, allocations: 177 MB / 204.1 MB, free: 9.152 MB / 190.1 MB " [Timeout remaining time 178] 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.QuasiStatic.SinglePhase.Examples.Transformer,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|load.pin_p.reference.gamma|voltageSource.pin_p.reference.gamma|idealTransformer.v1.re|idealTransformer.v1.im|idealTransformer.i1.re|idealTransformer.i1.im|idealTransformer.v2.re|idealTransformer.v2.im|idealTransformer.i2.re|idealTransformer.i2.im",fileNamePrefix="Modelica_trunk_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Transformer") translateModel(Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Transformer,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|load.pin_p.reference.gamma|voltageSource.pin_p.reference.gamma|idealTransformer.v1.re|idealTransformer.v1.im|idealTransformer.i1.re|idealTransformer.i1.im|idealTransformer.v2.re|idealTransformer.v2.im|idealTransformer.i2.re|idealTransformer.i2.im",fileNamePrefix="Modelica_trunk_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Transformer") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.402e-06/1.402e-06, allocations: 0 / 325 MB, free: 0.5 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.066e-05/2.206e-05, allocations: 3.438 kB / 325 MB, free: 0.4961 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Transformer): time 0.007241/0.007263, allocations: 5.023 MB / 330 MB, free: 13.12 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.004153/0.01142, allocations: 1.766 MB / 331.8 MB, free: 11.93 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004253/0.01184, allocations: 22.97 kB / 331.8 MB, free: 11.93 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003833/0.01567, allocations: 1.58 MB / 333.4 MB, free: 10.79 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001634/0.01731, allocations: 0.5951 MB / 334 MB, free: 10.33 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009128/0.01822, allocations: 401.6 kB / 334.4 MB, free: 10.03 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009756/0.0192, allocations: 0.8319 MB / 335.2 MB, free: 9.512 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001184/0.02038, allocations: 0.7588 MB / 336 MB, free: 8.977 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000688/0.02107, allocations: 0.5144 MB / 336.5 MB, free: 8.652 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005564/0.02163, allocations: 371.4 kB / 336.9 MB, free: 8.461 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001121/0.02174, allocations: 78.59 kB / 336.9 MB, free: 8.461 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005243/0.02226, allocations: 237.2 kB / 337.2 MB, free: 8.391 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001776/0.02244, allocations: 196.4 kB / 337.4 MB, free: 8.227 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003286/0.02277, allocations: 286.5 kB / 337.6 MB, free: 8.07 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00143/0.0242, allocations: 1.188 MB / 338.8 MB, free: 7.191 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.467e-06/0.0242, allocations: 0 / 338.8 MB, free: 7.191 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.112e-06/0.0242, allocations: 1 kB / 338.8 MB, free: 7.191 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.1e-05/0.02421, allocations: 0 / 338.8 MB, free: 7.191 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: 246 * Number of variables: 246 Notification: Performance of Generate backend data structure: time 0.003497/0.02771, allocations: 1.292 MB / 340.1 MB, free: 5.875 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.871e-05/0.02775, allocations: 11.98 kB / 340.1 MB, free: 5.863 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004869/0.03262, allocations: 0.6248 MB / 340.8 MB, free: 5.238 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000659/0.03328, allocations: 359.3 kB / 341.1 MB, free: 4.863 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.91e-05/0.03335, allocations: 78.38 kB / 341.2 MB, free: 4.789 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001659/0.03351, allocations: 96.38 kB / 341.3 MB, free: 4.695 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001774/0.03529, allocations: 1.012 MB / 342.3 MB, free: 3.66 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.075e-05/0.03532, allocations: 4.172 kB / 342.3 MB, free: 3.656 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.296e-05/0.03541, allocations: 40.38 kB / 342.3 MB, free: 3.617 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.667e-05/0.03544, allocations: 27.94 kB / 342.4 MB, free: 3.59 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001709/0.03715, allocations: 0.9136 MB / 343.3 MB, free: 2.672 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004653/0.0418, allocations: 2.803 MB / 346.1 MB, free: 15.74 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001959/0.04376, allocations: 0.7499 MB / 346.8 MB, free: 14.97 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004639/0.04422, allocations: 260.4 kB / 347.1 MB, free: 14.71 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.87e-05/0.04432, allocations: 28.62 kB / 347.1 MB, free: 14.68 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.175e-05/0.04436, allocations: 39.22 kB / 347.1 MB, free: 14.63 MB / 318.1 MB Notification: Performance of pre-optimization done (n=65): time 2.344e-06/0.04436, allocations: 0 / 347.1 MB, free: 14.63 MB / 318.1 MB Notification: Performance of matching and sorting (n=65): time 0.001525/0.04589, allocations: 0.7163 MB / 347.9 MB, free: 13.91 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.07e-05/0.04598, allocations: 115.7 kB / 348 MB, free: 13.77 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002994/0.04628, allocations: 273.5 kB / 348.2 MB, free: 13.5 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 4.9e-05/0.04633, allocations: 37.7 kB / 348.3 MB, free: 13.46 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002922/0.04662, allocations: 387.9 kB / 348.7 MB, free: 13.07 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002166/0.04684, allocations: 238 kB / 348.9 MB, free: 12.84 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002228/0.04706, allocations: 138.6 kB / 349 MB, free: 12.69 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0002004/0.04726, allocations: 346.8 kB / 349.4 MB, free: 12.34 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004518/0.04771, allocations: 225.9 kB / 349.6 MB, free: 12.12 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000659/0.04837, allocations: 439.4 kB / 350 MB, free: 11.61 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001198/0.04957, allocations: 0.7008 MB / 350.7 MB, free: 10.82 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.468e-06/0.04957, allocations: 0 / 350.7 MB, free: 10.82 MB / 318.1 MB Notification: Performance of matching and sorting (n=98) (initialization): time 0.00139/0.05096, allocations: 0.7543 MB / 351.5 MB, free: 10.05 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.063e-05/0.05098, allocations: 8.875 kB / 351.5 MB, free: 10.05 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.036e-05/0.05099, allocations: 8 kB / 351.5 MB, free: 10.04 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.635e-05/0.05102, allocations: 16 kB / 351.5 MB, free: 10.02 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000717/0.05174, allocations: 187.7 kB / 351.7 MB, free: 9.84 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.204e-05/0.05176, allocations: 19.92 kB / 351.7 MB, free: 9.82 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004227/0.05218, allocations: 75.45 kB / 351.8 MB, free: 9.746 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.095e-05/0.05224, allocations: 35.92 kB / 351.8 MB, free: 9.711 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 29 * 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 (98): * Single equations (assignments): 98 * 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.0002912/0.05253, allocations: 221.6 kB / 352 MB, free: 9.484 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001224/0.05266, allocations: 35.77 kB / 352.1 MB, free: 9.449 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001317/0.05397, allocations: 0.6501 MB / 352.7 MB, free: 8.789 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.848e-06/0.05398, allocations: 8 kB / 352.7 MB, free: 8.781 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.362e-06/0.05399, allocations: 0 / 352.7 MB, free: 8.781 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.229e-05/0.054, allocations: 11.86 kB / 352.7 MB, free: 8.77 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002329/0.05633, allocations: 1.261 MB / 354 MB, free: 7.473 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.649e-06/0.05634, allocations: 8 kB / 354 MB, free: 7.465 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006106/0.05695, allocations: 139.8 kB / 354.1 MB, free: 7.328 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.442e-06/0.05695, allocations: 4 kB / 354.1 MB, free: 7.324 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.008e-05/0.05699, allocations: 16 kB / 354.2 MB, free: 7.309 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.206e-06/0.057, allocations: 3.938 kB / 354.2 MB, free: 7.305 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.346e-06/0.057, allocations: 4 kB / 354.2 MB, free: 7.301 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001767/0.05877, allocations: 1.127 MB / 355.3 MB, free: 6.16 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.16e-05/0.05884, allocations: 47.61 kB / 355.3 MB, free: 6.113 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.503e-05/0.0589, allocations: 12 kB / 355.4 MB, free: 6.102 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003665/0.05927, allocations: 23.98 kB / 355.4 MB, free: 6.078 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001097/0.05938, allocations: 44.56 kB / 355.4 MB, free: 6.035 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.854e-05/0.05942, allocations: 20 kB / 355.4 MB, free: 6.016 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0001811/0.0596, allocations: 173.2 kB / 355.6 MB, free: 5.844 MB / 318.1 MB Notification: Performance of sort global known variables: time 8e-08/0.0596, allocations: 0 / 355.6 MB, free: 5.844 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0007775/0.06038, allocations: 231.3 kB / 355.8 MB, free: 5.617 MB / 318.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 2 (load.pin_p.reference.gamma,voltageSource.pin_p.reference.gamma) * 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 (72): * Single equations (assignments): 72 * 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 Backend phase and start with SimCode phase: time 0.0002948/0.06067, allocations: 159 kB / 356 MB, free: 5.453 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001141/0.06181, allocations: 0.5729 MB / 356.6 MB, free: 4.879 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.244e-06/0.06182, allocations: 0 / 356.6 MB, free: 4.879 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004858/0.0623, allocations: 268 kB / 356.8 MB, free: 4.621 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005263/0.06283, allocations: 40.5 kB / 356.9 MB, free: 4.582 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00205/0.06488, allocations: 1.184 MB / 358.1 MB, free: 3.355 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003274/0.0652, allocations: 311.8 kB / 358.4 MB, free: 3.027 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0002714/0.06548, allocations: 72.34 kB / 358.4 MB, free: 2.953 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001936/0.06567, allocations: 52.48 kB / 358.5 MB, free: 2.902 MB / 318.1 MB Notification: Performance of SimCode: time 6.51e-07/0.06567, allocations: 0 / 358.5 MB, free: 2.902 MB / 318.1 MB Notification: Performance of Templates: time 0.0111/0.07677, allocations: 4.336 MB / 362.8 MB, free: 14.61 MB / 334.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Transformer.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Transformer.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Transformer.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Transformer.pipe >> ../files/Modelica_trunk_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Transformer.sim & ./Modelica_trunk_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Transformer -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Transformer.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_trunk_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Transformer_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/QuasiStatic/SinglePhase/Examples/Transformer/Transformer.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Transformer.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 4.581798516213894]