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.00163/0.00163, allocations: 180.5 kB / 17.41 MB, free: 4.406 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.777/2.777, allocations: 205.4 MB / 223.5 MB, free: 8.953 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.001163/0.001163, allocations: 99.27 kB / 271.9 MB, free: 8.254 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004721/0.0004721, allocations: 8 kB / 328.2 MB, free: 15.94 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.455/0.4555, allocations: 47.57 MB / 375.7 MB, free: 45.4 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1784/0.634, allocations: 85.86 MB / 461.6 MB, free: 10.76 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004775/0.6345, allocations: 83.95 kB / 461.7 MB, free: 10.68 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1183/0.7528, allocations: 28.97 MB / 490.6 MB, free: 13.34 MB / 378.7 MB Notification: Performance of FrontEnd: time 3.617e-06/0.7529, allocations: 0 / 490.6 MB, free: 13.34 MB / 378.7 MB Notification: Performance of Transformations before backend: time 4.132e-05/0.753, allocations: 19.98 kB / 490.7 MB, free: 13.32 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.004492/0.7575, allocations: 1.077 MB / 491.7 MB, free: 12.19 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.002e-05/0.7575, allocations: 12.03 kB / 491.7 MB, free: 12.18 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009504/0.7671, allocations: 0.7178 MB / 492.5 MB, free: 11.46 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001492/0.7686, allocations: 465.2 kB / 492.9 MB, free: 10.96 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001126/0.7688, allocations: 78.55 kB / 493 MB, free: 10.89 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002882/0.7691, allocations: 108.3 kB / 493.1 MB, free: 10.78 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003706/0.7728, allocations: 1.129 MB / 494.2 MB, free: 9.613 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.052e-05/0.7729, allocations: 4.188 kB / 494.2 MB, free: 9.609 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000178/0.7731, allocations: 43.94 kB / 494.3 MB, free: 9.566 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.646e-05/0.7732, allocations: 28 kB / 494.3 MB, free: 9.539 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003917/0.7771, allocations: 1.136 MB / 495.4 MB, free: 8.406 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01099/0.7881, allocations: 4.067 MB / 499.5 MB, free: 4.098 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.3911/1.179, allocations: 3.766 MB / 0.4915 GB, free: 94.91 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001771/1.181, allocations: 313.8 kB / 0.4918 GB, free: 94.88 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002862/1.181, allocations: 96.61 kB / 0.4919 GB, free: 94.79 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.422e-05/1.182, allocations: 44.69 kB / 0.4919 GB, free: 94.75 MB / 378.7 MB Notification: Performance of pre-optimization done (n=71): time 1.448e-05/1.182, allocations: 0.5 kB / 0.4919 GB, free: 94.75 MB / 378.7 MB Notification: Performance of matching and sorting (n=71): time 0.003678/1.185, allocations: 0.759 MB / 0.4927 GB, free: 94.7 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.296e-05/1.185, allocations: 110.8 kB / 0.4928 GB, free: 94.57 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008729/1.186, allocations: 325.8 kB / 0.4931 GB, free: 94.46 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 8.379e-05/1.186, allocations: 39.2 kB / 0.4931 GB, free: 94.43 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004246/1.187, allocations: 446.4 kB / 0.4935 GB, free: 94.21 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003349/1.187, allocations: 249.3 kB / 0.4938 GB, free: 94.09 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.294e-05/1.187, allocations: 19.88 kB / 0.4938 GB, free: 94.09 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001906/1.188, allocations: 354.1 kB / 0.4941 GB, free: 93.78 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008809/1.188, allocations: 245.5 kB / 0.4944 GB, free: 93.78 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001377/1.19, allocations: 0.5568 MB / 0.4949 GB, free: 93.4 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002527/1.192, allocations: 0.8782 MB / 0.4958 GB, free: 93.02 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.245e-05/1.192, allocations: 3.156 kB / 0.4958 GB, free: 93.02 MB / 378.7 MB Notification: Performance of matching and sorting (n=122) (initialization): time 0.003282/1.196, allocations: 0.8962 MB / 0.4966 GB, free: 92.95 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.201e-05/1.196, allocations: 13.16 kB / 0.4967 GB, free: 92.95 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.721e-05/1.196, allocations: 10.06 kB / 0.4967 GB, free: 92.95 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 7.453e-05/1.196, allocations: 15.38 kB / 0.4967 GB, free: 92.95 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001747/1.198, allocations: 237.2 kB / 0.4969 GB, free: 92.95 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.981e-05/1.198, allocations: 23.5 kB / 0.4969 GB, free: 92.95 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001116/1.199, allocations: 103.4 kB / 0.497 GB, free: 92.92 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001615/1.199, allocations: 48.31 kB / 0.4971 GB, free: 92.92 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.000803/1.2, allocations: 242.5 kB / 0.4973 GB, free: 92.8 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002898/1.2, allocations: 46.66 kB / 0.4973 GB, free: 92.78 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002593/1.203, allocations: 0.6851 MB / 0.498 GB, free: 92.72 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.676e-05/1.203, allocations: 8.125 kB / 0.498 GB, free: 92.72 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.435e-05/1.203, allocations: 1.25 kB / 0.498 GB, free: 92.72 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.874e-05/1.203, allocations: 4.031 kB / 0.498 GB, free: 92.72 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004631/1.208, allocations: 1.595 MB / 0.4996 GB, free: 92.37 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.024e-05/1.208, allocations: 0 / 0.4996 GB, free: 92.37 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009779/1.209, allocations: 148.2 kB / 0.4997 GB, free: 92.37 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.602e-05/1.209, allocations: 4.594 kB / 0.4997 GB, free: 92.37 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.902e-05/1.209, allocations: 16.12 kB / 0.4997 GB, free: 92.37 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.9e-05/1.209, allocations: 6.266 kB / 0.4998 GB, free: 92.37 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.823e-06/1.209, allocations: 2.062 kB / 0.4998 GB, free: 92.37 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003207/1.212, allocations: 1.17 MB / 0.5009 GB, free: 92.03 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003134/1.213, allocations: 132.5 kB / 0.501 GB, free: 91.9 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001739/1.213, allocations: 15.5 kB / 0.501 GB, free: 91.9 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007645/1.213, allocations: 27.8 kB / 0.5011 GB, free: 91.9 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000185/1.214, allocations: 45.61 kB / 0.5011 GB, free: 91.9 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.946e-05/1.214, allocations: 18.41 kB / 0.5011 GB, free: 91.9 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0005003/1.214, allocations: 216.1 kB / 0.5013 GB, free: 91.82 MB / 378.7 MB Notification: Performance of sort global known variables: time 4.2e-07/1.214, allocations: 4.062 kB / 0.5013 GB, free: 91.82 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.002217/1.217, allocations: 254.6 kB / 0.5016 GB, free: 91.77 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.0005521/1.217, allocations: 159.7 kB / 0.5017 GB, free: 91.68 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.002471/1.22, allocations: 0.6901 MB / 0.5024 GB, free: 91.66 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 7.945e-06/1.22, allocations: 0 / 0.5024 GB, free: 91.66 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008582/1.221, allocations: 318.8 kB / 0.5027 GB, free: 91.66 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00145/1.222, allocations: 55.02 kB / 0.5028 GB, free: 91.65 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005888/1.228, allocations: 1.824 MB / 0.5045 GB, free: 90.68 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008571/1.229, allocations: 0.9272 MB / 0.5055 GB, free: 89.96 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000501/1.229, allocations: 62.98 kB / 0.5055 GB, free: 89.95 MB / 378.7 MB Notification: Performance of SimCode: time 2.284e-06/1.229, allocations: 2.188 kB / 0.5055 GB, free: 89.95 MB / 378.7 MB Notification: Performance of Templates: time 0.02521/1.255, allocations: 7.896 MB / 0.5132 GB, free: 89.42 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