Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Electrical.QuasiStationary.SinglePhase.Examples.Transformer.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(Modelica.Electrical.QuasiStationary.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_3.2.3_cpp_Modelica.Electrical.QuasiStationary.SinglePhase.Examples.Transformer") translateModel(Modelica.Electrical.QuasiStationary.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_3.2.3_cpp_Modelica.Electrical.QuasiStationary.SinglePhase.Examples.Transformer") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001535/0.001538, allocations: 185.9 kB / 16.41 MB, free: 5.727 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.911/1.911, allocations: 205.4 MB / 222.5 MB, free: 9.141 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001112/0.001112, allocations: 103.9 kB / 270.9 MB, free: 8.391 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003952/0.0003953, allocations: 8 kB / 327 MB, free: 228 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.322/0.3224, allocations: 47.56 MB / 374.5 MB, free: 45.44 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.135/0.4574, allocations: 85.76 MB / 460.3 MB, free: 11.01 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003075/0.4578, allocations: 91.95 kB / 460.4 MB, free: 10.92 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1099/0.5677, allocations: 29.09 MB / 489.5 MB, free: 13.48 MB / 378.7 MB Notification: Performance of FrontEnd: time 3.176e-06/0.5677, allocations: 0 / 489.5 MB, free: 13.48 MB / 378.7 MB Notification: Performance of Transformations before backend: time 3.59e-05/0.5678, allocations: 16 kB / 489.5 MB, free: 13.46 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 276 * Number of variables: 276 Notification: Performance of Generate backend data structure: time 0.004078/0.5719, allocations: 1.085 MB / 490.6 MB, free: 12.33 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.066e-05/0.5719, allocations: 12.03 kB / 490.6 MB, free: 12.32 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007678/0.5796, allocations: 0.7052 MB / 491.3 MB, free: 11.61 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001236/0.5809, allocations: 464.4 kB / 491.7 MB, free: 11.11 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001114/0.5811, allocations: 82.17 kB / 491.8 MB, free: 11.03 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003659/0.5814, allocations: 115.8 kB / 491.9 MB, free: 10.92 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003601/0.5851, allocations: 1.113 MB / 493 MB, free: 9.766 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.879e-05/0.5852, allocations: 3.984 kB / 493.1 MB, free: 9.762 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001693/0.5853, allocations: 48 kB / 493.1 MB, free: 9.715 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.221e-05/0.5854, allocations: 24 kB / 493.1 MB, free: 9.691 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003715/0.5891, allocations: 1.14 MB / 494.3 MB, free: 8.547 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01042/0.5996, allocations: 4.067 MB / 498.3 MB, free: 4.242 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.2718/0.8714, allocations: 3.748 MB / 0.4903 GB, free: 91.94 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002123/0.8717, allocations: 96.5 kB / 0.4904 GB, free: 91.85 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.925e-05/0.8717, allocations: 43.66 kB / 0.4904 GB, free: 91.81 MB / 378.7 MB Notification: Performance of pre-optimization done (n=71): time 3.266e-06/0.8717, allocations: 0 / 0.4904 GB, free: 91.81 MB / 378.7 MB Notification: Performance of matching and sorting (n=71): time 0.002776/0.8745, allocations: 0.7608 MB / 0.4912 GB, free: 91.76 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.478e-05/0.8746, allocations: 112 kB / 0.4913 GB, free: 91.64 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005034/0.8751, allocations: 294.7 kB / 0.4916 GB, free: 91.54 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 5.697e-05/0.8752, allocations: 36.05 kB / 0.4916 GB, free: 91.51 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00029/0.8755, allocations: 0.4963 MB / 0.4921 GB, free: 91.22 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002196/0.8757, allocations: 246.2 kB / 0.4923 GB, free: 91.1 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.037e-05/0.8758, allocations: 21.03 kB / 0.4923 GB, free: 91.1 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 9.274e-05/0.8759, allocations: 348 kB / 0.4927 GB, free: 90.79 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007164/0.8766, allocations: 246.3 kB / 0.4929 GB, free: 90.79 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008556/0.8775, allocations: 0.5531 MB / 0.4935 GB, free: 90.41 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008905/0.8784, allocations: 337.7 kB / 0.4938 GB, free: 90.4 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.928e-06/0.8784, allocations: 3.469 kB / 0.4938 GB, free: 90.4 MB / 378.7 MB Notification: Performance of matching and sorting (n=122) (initialization): time 0.002265/0.8807, allocations: 0.8901 MB / 0.4946 GB, free: 90.33 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.868e-05/0.8808, allocations: 9.219 kB / 0.4947 GB, free: 90.33 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.951e-05/0.8808, allocations: 10.5 kB / 0.4947 GB, free: 90.33 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.995e-05/0.8808, allocations: 17.19 kB / 0.4947 GB, free: 90.33 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001545/0.8824, allocations: 238.8 kB / 0.4949 GB, free: 90.33 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.254e-05/0.8824, allocations: 18.25 kB / 0.4949 GB, free: 90.33 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008118/0.8833, allocations: 105.9 kB / 0.495 GB, free: 90.3 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.606e-05/0.8834, allocations: 48.86 kB / 0.4951 GB, free: 90.3 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 47 * 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 (122): * Single equations (assignments): 122 * 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.000455/0.8838, allocations: 241.5 kB / 0.4953 GB, free: 90.19 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001505/0.884, allocations: 48.34 kB / 0.4954 GB, free: 90.16 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001993/0.886, allocations: 0.6886 MB / 0.496 GB, free: 90.1 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.338e-05/0.886, allocations: 10.88 kB / 0.496 GB, free: 90.1 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.143e-06/0.8861, allocations: 1.312 kB / 0.496 GB, free: 90.1 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.194e-05/0.8861, allocations: 5.188 kB / 0.496 GB, free: 90.1 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00359/0.8897, allocations: 1.588 MB / 0.4976 GB, free: 89.74 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.484e-06/0.8897, allocations: 1.031 kB / 0.4976 GB, free: 89.74 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001147/0.8909, allocations: 150.6 kB / 0.4977 GB, free: 89.74 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.07e-05/0.8909, allocations: 3.75 kB / 0.4977 GB, free: 89.74 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.264e-05/0.891, allocations: 19.45 kB / 0.4978 GB, free: 89.74 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.608e-06/0.891, allocations: 4 kB / 0.4978 GB, free: 89.74 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.687e-06/0.891, allocations: 4.906 kB / 0.4978 GB, free: 89.74 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002477/0.8935, allocations: 1.188 MB / 0.4989 GB, free: 89.38 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001526/0.8936, allocations: 131.9 kB / 0.4991 GB, free: 89.25 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000101/0.8938, allocations: 15.62 kB / 0.4991 GB, free: 89.25 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006116/0.8944, allocations: 31.92 kB / 0.4991 GB, free: 89.25 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001301/0.8945, allocations: 41.62 kB / 0.4991 GB, free: 89.25 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.746e-05/0.8946, allocations: 21.53 kB / 0.4992 GB, free: 89.25 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0002886/0.8949, allocations: 218 kB / 0.4994 GB, free: 89.16 MB / 378.7 MB Notification: Performance of sort global known variables: time 4.01e-07/0.8949, allocations: 0 / 0.4994 GB, free: 89.16 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001157/0.8961, allocations: 254.2 kB / 0.4996 GB, free: 89.12 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 2 (i1.pin_p.reference.gamma,load.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 (78): * Single equations (assignments): 78 * 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.0002893/0.8964, allocations: 156.6 kB / 0.4998 GB, free: 89.03 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001779/0.8982, allocations: 0.6891 MB / 0.5004 GB, free: 89.01 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 4.098e-06/0.8982, allocations: 0 / 0.5004 GB, free: 89.01 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006974/0.8989, allocations: 325.4 kB / 0.5007 GB, free: 89 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004966/0.8994, allocations: 34.55 kB / 0.5008 GB, free: 89 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005566/0.905, allocations: 2.346 MB / 0.5031 GB, free: 88.01 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004208/0.9054, allocations: 0.9429 MB / 0.504 GB, free: 87.3 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003586/0.9058, allocations: 63.25 kB / 0.504 GB, free: 87.29 MB / 378.7 MB Notification: Performance of SimCode: time 8.51e-07/0.9058, allocations: 0 / 0.504 GB, free: 87.29 MB / 378.7 MB Notification: Performance of Templates: time 0.01506/0.9209, allocations: 7.823 MB / 0.5117 GB, free: 86.8 MB / 378.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Electrical.QuasiStationary.SinglePhase.Examples.Transformer.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Electrical.QuasiStationary.SinglePhase.Examples.Transformer.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Electrical.QuasiStationary.SinglePhase.Examples.Transformer.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Electrical.QuasiStationary.SinglePhase.Examples.Transformer.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Electrical.QuasiStationary.SinglePhase.Examples.Transformer.sim & ./Modelica_3.2.3_cpp_Modelica.Electrical.QuasiStationary.SinglePhase.Examples.Transformer --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Electrical.QuasiStationary.SinglePhase.Examples.Transformer.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Electrical.QuasiStationary.SinglePhase.Examples.Transformer_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/QuasiStationary/SinglePhase/Examples/Transformer/Transformer.csv","../files/Modelica_3.2.3_cpp_Modelica.Electrical.QuasiStationary.SinglePhase.Examples.Transformer.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches