Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.QuasiStationary.SinglePhase.Examples.Transformer.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) 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 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+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_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_Modelica.Electrical.QuasiStationary.SinglePhase.Examples.Transformer") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001422/0.001422, allocations: 114.5 kB / 17.73 MB, free: 5.34 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001442/0.001443, allocations: 187 kB / 18.67 MB, free: 4.414 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.395/1.395, allocations: 205.1 MB / 224.5 MB, free: 12.24 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002094/0.002095, allocations: 51.94 kB / 328.5 MB, free: 3.312 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1211/0.1233, allocations: 46.62 MB / 375.1 MB, free: 4.586 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.QuasiStationary.SinglePhase.Examples.Transformer): time 0.2019/0.3252, allocations: 5.869 MB / 381 MB, free: 9.676 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.003346/0.3286, allocations: 1.906 MB / 382.9 MB, free: 9.523 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007341/0.3294, allocations: 22 kB / 382.9 MB, free: 9.523 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003795/0.3333, allocations: 1.629 MB / 384.6 MB, free: 8.867 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0032/0.3365, allocations: 0.8384 MB / 385.4 MB, free: 8.441 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001142/0.3376, allocations: 279.7 kB / 385.7 MB, free: 8.363 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.00179/0.3394, allocations: 0.8936 MB / 386.6 MB, free: 7.902 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002002/0.3415, allocations: 0.8829 MB / 387.5 MB, free: 7.445 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008569/0.3423, allocations: 392.9 kB / 387.8 MB, free: 7.242 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001359/0.3437, allocations: 0.5346 MB / 388.4 MB, free: 6.973 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004553/0.3442, allocations: 83.66 kB / 388.5 MB, free: 6.973 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001576/0.3458, allocations: 239.2 kB / 388.7 MB, free: 6.922 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003928/0.3462, allocations: 206.8 kB / 388.9 MB, free: 6.777 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001166/0.3474, allocations: 470.4 kB / 389.3 MB, free: 6.477 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00284/0.3502, allocations: 1.225 MB / 390.6 MB, free: 5.961 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.905e-06/0.3503, allocations: 7.938 kB / 390.6 MB, free: 5.953 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.775e-06/0.3503, allocations: 0.8906 kB / 390.6 MB, free: 5.953 MB / 318.1 MB Notification: Performance of Transformations before backend: time 6.086e-05/0.3503, allocations: 1.219 kB / 390.6 MB, free: 5.953 MB / 318.1 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.006652/0.357, allocations: 1.428 MB / 392 MB, free: 5.109 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.995e-05/0.3571, allocations: 8.938 kB / 392 MB, free: 5.109 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01229/0.3694, allocations: 0.9627 MB / 393 MB, free: 4.945 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001409/0.3708, allocations: 450.5 kB / 393.4 MB, free: 4.566 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001248/0.371, allocations: 77.23 kB / 393.5 MB, free: 4.531 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004192/0.3714, allocations: 110.7 kB / 393.6 MB, free: 4.492 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00394/0.3753, allocations: 1.137 MB / 394.7 MB, free: 3.98 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.086e-05/0.3754, allocations: 6.203 kB / 394.7 MB, free: 3.977 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001803/0.3756, allocations: 40.47 kB / 394.8 MB, free: 3.945 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.252e-05/0.3757, allocations: 26.81 kB / 394.8 MB, free: 3.945 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003222/0.3789, allocations: 1.135 MB / 395.9 MB, free: 3.566 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007788/0.3867, allocations: 3.928 MB / 399.9 MB, free: 0.9375 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004469/0.3912, allocations: 3.752 MB / 403.6 MB, free: 13.09 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007554/0.392, allocations: 320 kB / 403.9 MB, free: 12.95 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001612/0.3922, allocations: 101 kB / 404 MB, free: 12.85 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.424e-05/0.3922, allocations: 46.95 kB / 404.1 MB, free: 12.8 MB / 334.1 MB Notification: Performance of pre-optimization done (n=71): time 4.348e-06/0.3923, allocations: 0 / 404.1 MB, free: 12.8 MB / 334.1 MB Notification: Performance of matching and sorting (n=71): time 0.002262/0.3945, allocations: 0.7579 MB / 404.8 MB, free: 12.48 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.998e-05/0.3946, allocations: 110.8 kB / 405 MB, free: 12.36 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005876/0.3952, allocations: 326.1 kB / 405.3 MB, free: 12.15 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 6.266e-05/0.3953, allocations: 37.17 kB / 405.3 MB, free: 12.11 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004897/0.3958, allocations: 445.2 kB / 405.7 MB, free: 11.71 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003298/0.3962, allocations: 250.3 kB / 406 MB, free: 11.5 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004008/0.3966, allocations: 180.6 kB / 406.2 MB, free: 11.38 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0002073/0.3968, allocations: 353 kB / 406.5 MB, free: 11.04 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008002/0.3976, allocations: 253.2 kB / 406.8 MB, free: 10.92 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001131/0.3988, allocations: 0.5558 MB / 407.3 MB, free: 10.37 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002056/0.4008, allocations: 0.871 MB / 408.2 MB, free: 9.656 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.586e-05/0.4009, allocations: 3.469 kB / 408.2 MB, free: 9.656 MB / 334.1 MB Notification: Performance of matching and sorting (n=122) (initialization): time 0.002764/0.4037, allocations: 0.9035 MB / 409.1 MB, free: 9.199 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.176e-05/0.4037, allocations: 14.78 kB / 409.1 MB, free: 9.195 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.726e-05/0.4038, allocations: 13.44 kB / 409.1 MB, free: 9.191 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 5.34e-05/0.4038, allocations: 19.56 kB / 409.1 MB, free: 9.188 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00138/0.4052, allocations: 232.9 kB / 409.4 MB, free: 9.137 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.701e-05/0.4053, allocations: 28.12 kB / 409.4 MB, free: 9.125 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009541/0.4063, allocations: 107 kB / 409.5 MB, free: 9.051 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001093/0.4064, allocations: 44.44 kB / 409.5 MB, free: 9.043 MB / 334.1 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0006069/0.407, allocations: 232.8 kB / 409.8 MB, free: 8.848 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002313/0.4073, allocations: 53.59 kB / 409.8 MB, free: 8.816 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002051/0.4093, allocations: 0.6791 MB / 410.5 MB, free: 8.43 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.624e-05/0.4093, allocations: 11.84 kB / 410.5 MB, free: 8.426 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.018e-05/0.4094, allocations: 1.094 kB / 410.5 MB, free: 8.426 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.408e-05/0.4094, allocations: 5.141 kB / 410.5 MB, free: 8.422 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004571/0.414, allocations: 1.559 MB / 412.1 MB, free: 7.352 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.086e-05/0.414, allocations: 8.906 kB / 412.1 MB, free: 7.344 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009186/0.4149, allocations: 148.3 kB / 412.2 MB, free: 7.312 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.578e-05/0.415, allocations: 3 kB / 412.2 MB, free: 7.312 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.048e-05/0.415, allocations: 17.44 kB / 412.2 MB, free: 7.301 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.357e-06/0.4151, allocations: 3.938 kB / 412.3 MB, free: 7.301 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.597e-06/0.4151, allocations: 2.5 kB / 412.3 MB, free: 7.301 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002348/0.4174, allocations: 1.167 MB / 413.4 MB, free: 6.562 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002654/0.4177, allocations: 140.7 kB / 413.6 MB, free: 6.422 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000117/0.4178, allocations: 13.22 kB / 413.6 MB, free: 6.414 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006144/0.4185, allocations: 20.72 kB / 413.6 MB, free: 6.402 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001557/0.4186, allocations: 50.8 kB / 413.6 MB, free: 6.375 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.521e-05/0.4187, allocations: 18.78 kB / 413.7 MB, free: 6.371 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0003448/0.4191, allocations: 214.5 kB / 413.9 MB, free: 6.223 MB / 334.1 MB Notification: Performance of sort global known variables: time 2.5e-07/0.4191, allocations: 3.938 kB / 413.9 MB, free: 6.219 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.001446/0.4205, allocations: 246.9 kB / 414.1 MB, free: 6.145 MB / 334.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 (78): * Single equations (assignments): 78 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003255/0.4209, allocations: 149.8 kB / 414.3 MB, free: 6.023 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001882/0.4228, allocations: 0.6947 MB / 415 MB, free: 5.723 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 4.539e-06/0.4228, allocations: 5.75 kB / 415 MB, free: 5.719 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000802/0.4236, allocations: 318.1 kB / 415.3 MB, free: 5.582 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009902/0.4246, allocations: 51.94 kB / 415.3 MB, free: 5.547 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003669/0.4283, allocations: 1.387 MB / 416.7 MB, free: 4.57 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007013/0.429, allocations: 0.9281 MB / 417.6 MB, free: 3.613 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0005872/0.4296, allocations: 96.88 kB / 417.7 MB, free: 3.516 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002418/0.4299, allocations: 51.42 kB / 417.8 MB, free: 3.465 MB / 334.1 MB Notification: Performance of SimCode: time 6.82e-07/0.4299, allocations: 0 / 417.8 MB, free: 3.465 MB / 334.1 MB Notification: Performance of Templates: time 0.01586/0.4458, allocations: 5.209 MB / 423 MB, free: 14.26 MB / 350.1 MB make -j1 -f Modelica_3.2.3_Modelica.Electrical.QuasiStationary.SinglePhase.Examples.Transformer.makefile (rm -f Modelica_3.2.3_Modelica.Electrical.QuasiStationary.SinglePhase.Examples.Transformer.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.QuasiStationary.SinglePhase.Examples.Transformer.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.QuasiStationary.SinglePhase.Examples.Transformer.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.QuasiStationary.SinglePhase.Examples.Transformer.sim & ./Modelica_3.2.3_Modelica.Electrical.QuasiStationary.SinglePhase.Examples.Transformer -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.QuasiStationary.SinglePhase.Examples.Transformer.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.QuasiStationary.SinglePhase.Examples.Transformer_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/QuasiStationary/SinglePhase/Examples/Transformer/Transformer.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Electrical.QuasiStationary.SinglePhase.Examples.Transformer.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches