Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Transformer.conf.json 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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) 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) Running command: translateModel(Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Transformer,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,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_cpp_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Transformer") translateModel(Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Transformer,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,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_cpp_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Transformer") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001265/0.001266, allocations: 197.7 kB / 17.05 MB, free: 5.094 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.369/1.369, allocations: 226.6 MB / 244.3 MB, free: 6.574 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007338/0.0007336, allocations: 93.47 kB / 296.4 MB, free: 6.809 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002274/0.0002274, allocations: 11.94 kB / 356.2 MB, free: 11 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2137/0.2139, allocations: 51.29 MB / 407.5 MB, free: 27.83 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Transformer): time 0.003907/0.2179, allocations: 4.794 MB / 412.3 MB, free: 23.02 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.002679/0.2206, allocations: 1.689 MB / 414 MB, free: 21.33 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002774/0.2209, allocations: 16 kB / 414 MB, free: 21.32 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0004304/0.2213, allocations: 202 kB / 414.2 MB, free: 21.12 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0009425/0.2223, allocations: 499 kB / 414.7 MB, free: 20.63 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005357/0.2228, allocations: 331.3 kB / 415 MB, free: 20.31 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004684/0.2233, allocations: 0.7391 MB / 415.7 MB, free: 19.56 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001996/0.2253, allocations: 1.487 MB / 417.2 MB, free: 18.04 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002856/0.2256, allocations: 286.8 kB / 417.5 MB, free: 17.76 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003075/0.2259, allocations: 418.3 kB / 417.9 MB, free: 17.35 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 5.51e-05/0.226, allocations: 36 kB / 417.9 MB, free: 17.32 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003422/0.2263, allocations: 195.8 kB / 418.1 MB, free: 17.12 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 6.417e-05/0.2264, allocations: 131.4 kB / 418.3 MB, free: 17 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 8.247e-05/0.2265, allocations: 169.3 kB / 418.4 MB, free: 16.82 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000563/0.2271, allocations: 0.8968 MB / 419.3 MB, free: 15.93 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.168e-06/0.2271, allocations: 0 / 419.3 MB, free: 15.93 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.535e-06/0.2271, allocations: 0 / 419.3 MB, free: 15.93 MB / 298.7 MB Notification: Performance of Transformations before backend: time 7.885e-06/0.2271, allocations: 7.875 kB / 419.3 MB, free: 15.92 MB / 298.7 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.00247/0.2296, allocations: 1.198 MB / 420.5 MB, free: 14.67 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.19e-05/0.2296, allocations: 8.031 kB / 420.5 MB, free: 14.66 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004116/0.2337, allocations: 0.6585 MB / 421.2 MB, free: 14 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004276/0.2342, allocations: 420 kB / 421.6 MB, free: 13.55 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.833e-05/0.2342, allocations: 74 kB / 421.7 MB, free: 13.48 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.949e-05/0.2343, allocations: 96 kB / 421.8 MB, free: 13.39 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001308/0.2356, allocations: 0.9782 MB / 422.8 MB, free: 12.39 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.607e-05/0.2357, allocations: 0 / 422.8 MB, free: 12.39 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.981e-05/0.2357, allocations: 40 kB / 422.8 MB, free: 12.36 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.442e-05/0.2358, allocations: 24 kB / 422.8 MB, free: 12.33 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001249/0.237, allocations: 0.933 MB / 423.8 MB, free: 11.39 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003405/0.2404, allocations: 3.453 MB / 427.2 MB, free: 7.75 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001638/0.2421, allocations: 2.245 MB / 429.5 MB, free: 5.145 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003528/0.2424, allocations: 299.5 kB / 429.7 MB, free: 4.848 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000105/0.2426, allocations: 178.8 kB / 429.9 MB, free: 4.637 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.253e-05/0.2426, allocations: 47.06 kB / 430 MB, free: 4.578 MB / 298.7 MB Notification: Performance of pre-optimization done (n=65): time 2.294e-06/0.2426, allocations: 0 / 430 MB, free: 4.578 MB / 298.7 MB Notification: Performance of matching and sorting (n=65): time 0.001102/0.2437, allocations: 0.7252 MB / 430.7 MB, free: 3.848 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.907e-05/0.2438, allocations: 115.4 kB / 430.8 MB, free: 3.711 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001941/0.244, allocations: 262.5 kB / 431.1 MB, free: 3.449 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 3.258e-05/0.244, allocations: 37.7 kB / 431.1 MB, free: 3.406 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001219/0.2441, allocations: 374.7 kB / 431.5 MB, free: 3.031 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.704e-05/0.2442, allocations: 232.7 kB / 431.7 MB, free: 2.801 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.724e-05/0.2443, allocations: 16 kB / 431.7 MB, free: 2.785 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 6.199e-05/0.2443, allocations: 354.8 kB / 432 MB, free: 2.43 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003275/0.2447, allocations: 217.9 kB / 432.3 MB, free: 2.215 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003897/0.2451, allocations: 447.3 kB / 432.7 MB, free: 1.688 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004084/0.2455, allocations: 286 kB / 433 MB, free: 1.414 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.847e-06/0.2455, allocations: 4 kB / 433 MB, free: 1.41 MB / 298.7 MB Notification: Performance of matching and sorting (n=98) (initialization): time 0.000941/0.2464, allocations: 0.7526 MB / 433.7 MB, free: 0.6484 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.577e-05/0.2465, allocations: 8 kB / 433.7 MB, free: 0.6406 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.856e-06/0.2465, allocations: 4 kB / 433.7 MB, free: 0.6367 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.907e-05/0.2465, allocations: 15.98 kB / 433.8 MB, free: 0.6211 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006002/0.2471, allocations: 191.7 kB / 433.9 MB, free: 444 kB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.314e-05/0.2471, allocations: 15.94 kB / 434 MB, free: 428 kB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003471/0.2475, allocations: 83.36 kB / 434 MB, free: 344 kB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.905e-05/0.2475, allocations: 36 kB / 434.1 MB, free: 308 kB / 298.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002002/0.2477, allocations: 217.5 kB / 434.3 MB, free: 80 kB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.764e-05/0.2478, allocations: 35.62 kB / 434.3 MB, free: 44 kB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001122/0.249, allocations: 0.6634 MB / 435 MB, free: 15.37 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.257e-06/0.249, allocations: 8 kB / 435 MB, free: 15.36 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.016e-05/0.249, allocations: 7.984 kB / 435 MB, free: 15.36 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.703e-06/0.249, allocations: 0 / 435 MB, free: 15.36 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002139/0.2512, allocations: 1.486 MB / 436.5 MB, free: 13.81 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.765e-06/0.2512, allocations: 0 / 436.5 MB, free: 13.81 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005455/0.2517, allocations: 147.8 kB / 436.6 MB, free: 13.67 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.736e-06/0.2517, allocations: 4 kB / 436.6 MB, free: 13.66 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.408e-05/0.2518, allocations: 15.95 kB / 436.7 MB, free: 13.65 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.278e-06/0.2518, allocations: 4 kB / 436.7 MB, free: 13.64 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.353e-06/0.2518, allocations: 0 / 436.7 MB, free: 13.64 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001389/0.2532, allocations: 1.122 MB / 437.8 MB, free: 12.51 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.743e-05/0.2533, allocations: 128.5 kB / 437.9 MB, free: 12.36 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.31e-05/0.2534, allocations: 20.06 kB / 437.9 MB, free: 12.34 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003441/0.2537, allocations: 27.94 kB / 438 MB, free: 12.32 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.707e-05/0.2538, allocations: 44.44 kB / 438 MB, free: 12.27 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.422e-05/0.2538, allocations: 23.94 kB / 438 MB, free: 12.25 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0001625/0.254, allocations: 182 kB / 438.2 MB, free: 12.07 MB / 314.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.254, allocations: 0 / 438.2 MB, free: 12.07 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0006512/0.2547, allocations: 227.1 kB / 438.4 MB, free: 11.85 MB / 314.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002174/0.2549, allocations: 151.1 kB / 438.6 MB, free: 11.69 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0009319/0.2558, allocations: 0.6182 MB / 439.2 MB, free: 11.08 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 2.104e-06/0.2559, allocations: 0 / 439.2 MB, free: 11.08 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004174/0.2563, allocations: 299.1 kB / 439.5 MB, free: 10.79 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004968/0.2568, allocations: 50.44 kB / 439.5 MB, free: 10.74 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001878/0.2587, allocations: 1.634 MB / 441.2 MB, free: 9.059 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004102/0.2591, allocations: 0.9009 MB / 442.1 MB, free: 8.133 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001747/0.2593, allocations: 55.42 kB / 442.1 MB, free: 8.078 MB / 314.7 MB Notification: Performance of SimCode: time 2.11e-07/0.2593, allocations: 0 / 442.1 MB, free: 8.078 MB / 314.7 MB Notification: Performance of Templates: time 0.009205/0.2685, allocations: 7.176 MB / 449.3 MB, free: 0.9102 MB / 314.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Transformer.makefile (rm -f Modelica_trunk_cpp_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Transformer.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Transformer.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Transformer.pipe >> ../files/Modelica_trunk_cpp_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Transformer.sim & ./Modelica_trunk_cpp_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Transformer --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Transformer.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Transformer_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/QuasiStatic/SinglePhase/Examples/Transformer/Transformer.csv","../files/Modelica_trunk_cpp_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Transformer.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches