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) 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) 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=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_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_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Transformer") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008837/0.0008838, allocations: 98.38 kB / 16.99 MB, free: 6.402 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009405/0.0009406, allocations: 198.3 kB / 17.9 MB, free: 5.945 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.281/1.281, allocations: 227.2 MB / 245.9 MB, free: 10.34 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0001996/0.0001996, allocations: 4 kB / 306.6 MB, free: 1.426 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08599/0.0862, allocations: 51.5 MB / 358.1 MB, free: 13.93 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Transformer): time 0.004596/0.09083, allocations: 4.507 MB / 362.6 MB, free: 9.398 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.00318/0.09403, allocations: 1.73 MB / 364.3 MB, free: 7.66 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005438/0.09461, allocations: 16 kB / 364.3 MB, free: 7.645 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007064/0.09533, allocations: 194.9 kB / 364.5 MB, free: 7.453 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001409/0.09675, allocations: 0.5217 MB / 365 MB, free: 6.934 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007147/0.09748, allocations: 339.2 kB / 365.4 MB, free: 6.602 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007184/0.09821, allocations: 0.5461 MB / 365.9 MB, free: 6.051 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002551/0.1008, allocations: 1.459 MB / 367.4 MB, free: 4.559 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004499/0.1012, allocations: 286.9 kB / 367.7 MB, free: 4.277 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004265/0.1017, allocations: 386.5 kB / 368 MB, free: 3.898 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 6.314e-05/0.1017, allocations: 40 kB / 368.1 MB, free: 3.859 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004617/0.1022, allocations: 171.8 kB / 368.2 MB, free: 3.691 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 9.611e-05/0.1023, allocations: 139.4 kB / 368.4 MB, free: 3.555 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001289/0.1024, allocations: 161.3 kB / 368.5 MB, free: 3.391 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008298/0.1033, allocations: 0.8922 MB / 369.4 MB, free: 2.496 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.527e-06/0.1033, allocations: 4 kB / 369.4 MB, free: 2.492 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.523e-06/0.1033, allocations: 0 / 369.4 MB, free: 2.492 MB / 302.1 MB Notification: Performance of Transformations before backend: time 8.386e-06/0.1033, allocations: 0 / 369.4 MB, free: 2.492 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.002891/0.1062, allocations: 1.209 MB / 370.6 MB, free: 1.238 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.256e-05/0.1063, allocations: 8.031 kB / 370.6 MB, free: 1.23 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004602/0.1109, allocations: 0.6508 MB / 371.3 MB, free: 0.5781 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004903/0.1114, allocations: 413.8 kB / 371.7 MB, free: 136 kB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.96e-05/0.1114, allocations: 70 kB / 371.8 MB, free: 64 kB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.1457/0.2571, allocations: 96.14 kB / 371.9 MB, free: 19.45 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00193/0.2591, allocations: 0.971 MB / 372.8 MB, free: 19.36 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.007e-05/0.2591, allocations: 2.562 kB / 372.8 MB, free: 19.36 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.281e-05/0.2592, allocations: 42.86 kB / 372.9 MB, free: 19.36 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.04e-05/0.2592, allocations: 27.66 kB / 372.9 MB, free: 19.36 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001594/0.2608, allocations: 0.9296 MB / 373.8 MB, free: 19.16 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004256/0.2651, allocations: 3.455 MB / 377.3 MB, free: 17.01 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001813/0.2669, allocations: 2.229 MB / 379.5 MB, free: 14.9 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000107/0.267, allocations: 183.6 kB / 379.7 MB, free: 14.7 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.959e-05/0.2671, allocations: 39.97 kB / 379.7 MB, free: 14.66 MB / 302.1 MB Notification: Performance of pre-optimization done (n=65): time 2.134e-06/0.2671, allocations: 0 / 379.7 MB, free: 14.66 MB / 302.1 MB Notification: Performance of matching and sorting (n=65): time 0.001242/0.2683, allocations: 0.7264 MB / 380.5 MB, free: 14.35 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.932e-05/0.2684, allocations: 110.5 kB / 380.6 MB, free: 14.23 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002339/0.2686, allocations: 269.7 kB / 380.8 MB, free: 14.07 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.186e-05/0.2686, allocations: 37.05 kB / 380.9 MB, free: 14.03 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001471/0.2688, allocations: 384.8 kB / 381.2 MB, free: 13.72 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000118/0.2689, allocations: 225.4 kB / 381.5 MB, free: 13.55 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.974e-05/0.2689, allocations: 15.25 kB / 381.5 MB, free: 13.54 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 8.106e-05/0.269, allocations: 355.7 kB / 381.8 MB, free: 13.2 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003847/0.2694, allocations: 222.8 kB / 382 MB, free: 13.12 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000446/0.2699, allocations: 439.9 kB / 382.5 MB, free: 12.78 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004395/0.2703, allocations: 289.4 kB / 382.8 MB, free: 12.64 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.33e-06/0.2703, allocations: 2.781 kB / 382.8 MB, free: 12.64 MB / 302.1 MB Notification: Performance of matching and sorting (n=98) (initialization): time 0.001097/0.2714, allocations: 0.7555 MB / 383.5 MB, free: 12.31 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.994e-05/0.2715, allocations: 8.469 kB / 383.5 MB, free: 12.31 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.969e-06/0.2715, allocations: 5.719 kB / 383.5 MB, free: 12.31 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.337e-05/0.2715, allocations: 11.56 kB / 383.5 MB, free: 12.31 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006823/0.2722, allocations: 193.6 kB / 383.7 MB, free: 12.29 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.929e-05/0.2722, allocations: 12.3 kB / 383.7 MB, free: 12.29 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003767/0.2726, allocations: 84.59 kB / 383.8 MB, free: 12.24 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.842e-05/0.2727, allocations: 38.12 kB / 383.9 MB, free: 12.23 MB / 302.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002176/0.2729, allocations: 224.6 kB / 384.1 MB, free: 12.04 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001083/0.273, allocations: 38.62 kB / 384.1 MB, free: 12.02 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001087/0.2741, allocations: 0.657 MB / 384.8 MB, free: 11.73 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.807e-06/0.2741, allocations: 7.219 kB / 384.8 MB, free: 11.73 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.021e-06/0.2741, allocations: 1.906 kB / 384.8 MB, free: 11.73 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.357e-06/0.2742, allocations: 4.594 kB / 384.8 MB, free: 11.73 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002111/0.2763, allocations: 1.486 MB / 386.3 MB, free: 10.93 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.378e-06/0.2763, allocations: 1.094 kB / 386.3 MB, free: 10.93 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005576/0.2768, allocations: 141.5 kB / 386.4 MB, free: 10.92 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.454e-06/0.2769, allocations: 7.891 kB / 386.4 MB, free: 10.91 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.459e-05/0.2769, allocations: 16.06 kB / 386.4 MB, free: 10.91 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.88e-06/0.2769, allocations: 3.906 kB / 386.4 MB, free: 10.91 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.423e-06/0.2769, allocations: 1.875 kB / 386.4 MB, free: 10.91 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001464/0.2784, allocations: 1.161 MB / 387.6 MB, free: 10.22 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.086e-05/0.2785, allocations: 120.6 kB / 387.7 MB, free: 10.1 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.064e-05/0.2786, allocations: 12.22 kB / 387.7 MB, free: 10.09 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003451/0.2789, allocations: 27.81 kB / 387.8 MB, free: 10.08 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001027/0.279, allocations: 40.77 kB / 387.8 MB, free: 10.07 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.778e-05/0.2791, allocations: 23.78 kB / 387.8 MB, free: 10.07 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001807/0.2793, allocations: 186.8 kB / 388 MB, free: 9.949 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2793, allocations: 0 / 388 MB, free: 9.949 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0008427/0.2801, allocations: 223.6 kB / 388.2 MB, free: 9.883 MB / 302.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 (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.0002546/0.2804, allocations: 157.9 kB / 388.4 MB, free: 9.762 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001096/0.2815, allocations: 0.6105 MB / 389 MB, free: 9.551 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.896e-06/0.2815, allocations: 1.375 kB / 389 MB, free: 9.551 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004303/0.2819, allocations: 313.1 kB / 389.3 MB, free: 9.434 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000346/0.2823, allocations: 36.47 kB / 389.3 MB, free: 9.41 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002015/0.2843, allocations: 1.585 MB / 390.9 MB, free: 8.375 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000413/0.2847, allocations: 0.9156 MB / 391.8 MB, free: 7.668 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.000367/0.2851, allocations: 76.17 kB / 391.9 MB, free: 7.641 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001326/0.2852, allocations: 50.22 kB / 392 MB, free: 7.633 MB / 302.1 MB Notification: Performance of SimCode: time 8.12e-07/0.2853, allocations: 0 / 392 MB, free: 7.633 MB / 302.1 MB Notification: Performance of Templates: time 0.01045/0.2957, allocations: 4.331 MB / 396.3 MB, free: 6.082 MB / 302.1 MB make -j1 -f Modelica_trunk_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Transformer.makefile (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) diffSimulationResults("Modelica_trunk_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_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Transformer.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches