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.00111/0.00111, allocations: 197.4 kB / 17.38 MB, free: 4.312 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.265/1.265, allocations: 226.5 MB / 244.7 MB, free: 6.449 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007604/0.0007608, allocations: 103.8 kB / 296.8 MB, free: 6.672 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002077/0.0002077, allocations: 8 kB / 356.8 MB, free: 10.69 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2075/0.2078, allocations: 51.29 MB / 408 MB, free: 27.69 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Transformer): time 0.003753/0.2116, allocations: 4.821 MB / 412.9 MB, free: 22.86 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.002607/0.2142, allocations: 1.684 MB / 414.6 MB, free: 21.17 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004428/0.2147, allocations: 20 kB / 414.6 MB, free: 21.15 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0004921/0.2152, allocations: 199.9 kB / 414.8 MB, free: 20.96 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001146/0.2163, allocations: 0.4918 MB / 415.3 MB, free: 20.47 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005764/0.2169, allocations: 340.7 kB / 415.6 MB, free: 20.14 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0005463/0.2175, allocations: 0.743 MB / 416.3 MB, free: 19.39 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002163/0.2196, allocations: 1.575 MB / 417.9 MB, free: 17.78 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003989/0.2201, allocations: 282.9 kB / 418.2 MB, free: 17.5 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003305/0.2204, allocations: 418.3 kB / 418.6 MB, free: 17.09 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 5.91e-05/0.2205, allocations: 40 kB / 418.6 MB, free: 17.05 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00044/0.2209, allocations: 195.8 kB / 418.8 MB, free: 16.86 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 7.268e-05/0.221, allocations: 131.4 kB / 419 MB, free: 16.73 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002401/0.2212, allocations: 379.9 kB / 419.3 MB, free: 16.35 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0006392/0.2219, allocations: 0.9007 MB / 420.2 MB, free: 15.45 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.89e-06/0.2219, allocations: 0 / 420.2 MB, free: 15.45 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.674e-06/0.2219, allocations: 3.938 kB / 420.2 MB, free: 15.45 MB / 298.7 MB Notification: Performance of Transformations before backend: time 8.146e-06/0.2219, allocations: 0 / 420.2 MB, free: 15.45 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.002483/0.2244, allocations: 1.186 MB / 421.4 MB, free: 14.21 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.747e-05/0.2245, allocations: 12.03 kB / 421.4 MB, free: 14.2 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003914/0.2284, allocations: 0.6594 MB / 422.1 MB, free: 13.54 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005123/0.2289, allocations: 425.4 kB / 422.5 MB, free: 13.09 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.232e-05/0.229, allocations: 74.38 kB / 422.6 MB, free: 13.01 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001044/0.2291, allocations: 92.38 kB / 422.7 MB, free: 12.92 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00138/0.2305, allocations: 0.9824 MB / 423.6 MB, free: 11.93 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.974e-05/0.2305, allocations: 4 kB / 423.6 MB, free: 11.92 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.326e-05/0.2306, allocations: 40 kB / 423.7 MB, free: 11.88 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.758e-05/0.2306, allocations: 23.98 kB / 423.7 MB, free: 11.86 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001328/0.2319, allocations: 0.9252 MB / 424.6 MB, free: 10.93 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003841/0.2358, allocations: 3.453 MB / 428.1 MB, free: 7.285 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001735/0.2376, allocations: 2.249 MB / 430.3 MB, free: 4.676 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003617/0.2379, allocations: 299.5 kB / 430.6 MB, free: 4.375 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001256/0.2381, allocations: 178.8 kB / 430.8 MB, free: 4.164 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.056e-05/0.2381, allocations: 43.06 kB / 430.8 MB, free: 4.113 MB / 298.7 MB Notification: Performance of pre-optimization done (n=65): time 2.695e-06/0.2381, allocations: 4 kB / 430.9 MB, free: 4.109 MB / 298.7 MB Notification: Performance of matching and sorting (n=65): time 0.001142/0.2393, allocations: 0.7291 MB / 431.6 MB, free: 3.375 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.188e-05/0.2393, allocations: 111.4 kB / 431.7 MB, free: 3.242 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002081/0.2395, allocations: 266.5 kB / 431.9 MB, free: 2.969 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.96e-05/0.2396, allocations: 33.7 kB / 432 MB, free: 2.93 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001493/0.2397, allocations: 390.6 kB / 432.4 MB, free: 2.539 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001082/0.2398, allocations: 220.7 kB / 432.6 MB, free: 2.32 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.154e-05/0.2399, allocations: 16 kB / 432.6 MB, free: 2.305 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 7.859e-05/0.24, allocations: 350.8 kB / 432.9 MB, free: 1.953 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003361/0.2403, allocations: 225.9 kB / 433.2 MB, free: 1.734 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003971/0.2407, allocations: 439.3 kB / 433.6 MB, free: 1.219 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007594/0.2415, allocations: 0.7028 MB / 434.3 MB, free: 440 kB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.927e-06/0.2415, allocations: 0 / 434.3 MB, free: 440 kB / 298.7 MB Notification: Performance of matching and sorting (n=98) (initialization): time 0.001087/0.2426, allocations: 0.7448 MB / 435 MB, free: 15.68 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.438e-05/0.2426, allocations: 16.12 kB / 435.1 MB, free: 15.66 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.062e-05/0.2426, allocations: 8 kB / 435.1 MB, free: 15.65 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.154e-05/0.2427, allocations: 8 kB / 435.1 MB, free: 15.64 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006634/0.2433, allocations: 199.7 kB / 435.3 MB, free: 15.45 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.493e-05/0.2434, allocations: 11.94 kB / 435.3 MB, free: 15.44 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003835/0.2437, allocations: 79.27 kB / 435.4 MB, free: 15.36 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.765e-05/0.2438, allocations: 36 kB / 435.4 MB, free: 15.32 MB / 314.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.0003059/0.2441, allocations: 217.6 kB / 435.6 MB, free: 15.1 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001032/0.2442, allocations: 47.47 kB / 435.6 MB, free: 15.05 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001179/0.2454, allocations: 0.6556 MB / 436.3 MB, free: 14.39 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.927e-06/0.2454, allocations: 8 kB / 436.3 MB, free: 14.38 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.25e-06/0.2454, allocations: 0 / 436.3 MB, free: 14.38 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.686e-06/0.2455, allocations: 3.984 kB / 436.3 MB, free: 14.38 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0022/0.2477, allocations: 1.494 MB / 437.8 MB, free: 12.83 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.654e-05/0.2477, allocations: 0 / 437.8 MB, free: 12.83 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005499/0.2483, allocations: 151.7 kB / 438 MB, free: 12.68 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.418e-06/0.2483, allocations: 0 / 438 MB, free: 12.68 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.427e-05/0.2483, allocations: 16 kB / 438 MB, free: 12.66 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.923e-06/0.2483, allocations: 7.938 kB / 438 MB, free: 12.66 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.744e-06/0.2483, allocations: 0 / 438 MB, free: 12.66 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001437/0.2498, allocations: 1.122 MB / 439.1 MB, free: 11.52 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.337e-05/0.2499, allocations: 124.5 kB / 439.2 MB, free: 11.38 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.389e-05/0.2499, allocations: 16 kB / 439.2 MB, free: 11.37 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003309/0.2503, allocations: 31.98 kB / 439.3 MB, free: 11.34 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.276e-05/0.2504, allocations: 48.44 kB / 439.3 MB, free: 11.29 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.675e-05/0.2504, allocations: 24 kB / 439.3 MB, free: 11.26 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0001551/0.2506, allocations: 178 kB / 439.5 MB, free: 11.09 MB / 314.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2506, allocations: 0 / 439.5 MB, free: 11.09 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0006952/0.2513, allocations: 231.1 kB / 439.7 MB, free: 10.86 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.0002445/0.2515, allocations: 147.1 kB / 439.9 MB, free: 10.71 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.001009/0.2526, allocations: 0.6147 MB / 440.5 MB, free: 10.09 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 4.439e-06/0.2526, allocations: 4.125 kB / 440.5 MB, free: 10.09 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004231/0.253, allocations: 303 kB / 440.8 MB, free: 9.793 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005502/0.2536, allocations: 44.55 kB / 440.8 MB, free: 9.75 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001949/0.2555, allocations: 1.622 MB / 442.5 MB, free: 8.078 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004331/0.256, allocations: 0.9009 MB / 443.4 MB, free: 7.152 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001974/0.2562, allocations: 63.42 kB / 443.4 MB, free: 7.09 MB / 314.7 MB Notification: Performance of SimCode: time 8.82e-07/0.2562, allocations: 0 / 443.4 MB, free: 7.09 MB / 314.7 MB Notification: Performance of Templates: time 0.009875/0.2661, allocations: 7.141 MB / 450.6 MB, free: 15.95 MB / 330.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