Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.QuasiStatic.Machines.Examples.TransformerTestbench.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.Machines.Examples.TransformerTestbench,tolerance=1e-06,outputFormat="mat",numberOfIntervals=200,variableFilter="time|source.plug_p.reference.gamma",fileNamePrefix="Modelica_trunk_Modelica.Electrical.QuasiStatic.Machines.Examples.TransformerTestbench") translateModel(Modelica.Electrical.QuasiStatic.Machines.Examples.TransformerTestbench,tolerance=1e-06,outputFormat="mat",numberOfIntervals=200,variableFilter="time|source.plug_p.reference.gamma",fileNamePrefix="Modelica_trunk_Modelica.Electrical.QuasiStatic.Machines.Examples.TransformerTestbench") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001415/0.001415, allocations: 104.8 kB / 17.2 MB, free: 6.289 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001765/0.001765, allocations: 209.8 kB / 18.14 MB, free: 5.371 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.301/1.301, allocations: 227.4 MB / 246.3 MB, free: 10.87 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002087/0.002087, allocations: 60.53 kB / 306.3 MB, free: 1.07 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1285/0.1306, allocations: 50.53 MB / 356.8 MB, free: 14.55 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.QuasiStatic.Machines.Examples.TransformerTestbench): time 0.2169/0.3476, allocations: 28.05 MB / 384.8 MB, free: 5.996 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01563/0.3633, allocations: 7.135 MB / 392 MB, free: 1.352 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.008344/0.3717, allocations: 256.3 kB / 392.2 MB, free: 1.297 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0277/0.3995, allocations: 12.44 MB / 404.7 MB, free: 9.199 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.013/0.4125, allocations: 2.252 MB / 406.9 MB, free: 7.418 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007261/0.4198, allocations: 1.909 MB / 408.8 MB, free: 5.957 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.02319/0.443, allocations: 17.6 MB / 426.4 MB, free: 6.953 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.06781/0.5108, allocations: 37.21 MB / 463.6 MB, free: 1.531 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01326/0.5241, allocations: 8.725 MB / 472.4 MB, free: 8.793 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01526/0.5394, allocations: 10.65 MB / 483 MB, free: 14.11 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.005852/0.5453, allocations: 2.074 MB / 485.1 MB, free: 12.04 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.009066/0.5544, allocations: 2.347 MB / 487.4 MB, free: 9.688 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.006599/0.561, allocations: 4.605 MB / 492 MB, free: 5.07 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01504/0.576, allocations: 9.932 MB / 0.4902 GB, free: 11.1 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.03161/0.6077, allocations: 38.27 MB / 0.5276 GB, free: 4.723 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.909e-06/0.6077, allocations: 0 / 0.5276 GB, free: 4.723 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.623e-06/0.6077, allocations: 0 / 0.5276 GB, free: 4.723 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0006704/0.6084, allocations: 0 / 0.5276 GB, free: 4.723 MB / 446.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 4885 * Number of variables: 4885 Notification: Performance of Generate backend data structure: time 0.3704/0.9788, allocations: 22.04 MB / 0.5491 GB, free: 116.6 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.367e-05/0.9789, allocations: 9.062 kB / 0.5491 GB, free: 116.6 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05174/1.031, allocations: 8.368 MB / 0.5573 GB, free: 112.8 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0222/1.053, allocations: 11.26 MB / 0.5683 GB, free: 102.7 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001182/1.054, allocations: 1.336 MB / 0.5696 GB, free: 101.3 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.007066/1.061, allocations: 1.745 MB / 0.5713 GB, free: 99.61 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.06278/1.124, allocations: 28.76 MB / 0.5994 GB, free: 70.8 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006728/1.125, allocations: 23.89 kB / 0.5994 GB, free: 70.77 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004663/1.129, allocations: 0.7259 MB / 0.6001 GB, free: 70.06 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0006351/1.13, allocations: 0.8648 MB / 0.601 GB, free: 69.19 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04335/1.173, allocations: 24.82 MB / 0.6252 GB, free: 44.34 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1275/1.301, allocations: 88.44 MB / 0.7116 GB, free: 2.121 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.3588/1.66, allocations: 35.19 MB / 0.7459 GB, free: 119.3 MB / 494.3 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.008576/1.668, allocations: 5.379 MB / 0.7512 GB, free: 117.5 MB / 494.3 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005329/1.669, allocations: 284.1 kB / 0.7515 GB, free: 117.3 MB / 494.3 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.705e-05/1.669, allocations: 99.38 kB / 0.7515 GB, free: 117.2 MB / 494.3 MB Notification: Performance of pre-optimization done (n=589): time 8.646e-06/1.669, allocations: 0 / 0.7515 GB, free: 117.2 MB / 494.3 MB Notification: Performance of matching and sorting (n=589): time 0.02962/1.699, allocations: 14.81 MB / 0.766 GB, free: 112.5 MB / 494.3 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.102e-05/1.699, allocations: 142.8 kB / 0.7661 GB, free: 112.4 MB / 494.3 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008086/1.707, allocations: 6.421 MB / 0.7724 GB, free: 110.3 MB / 494.3 MB Notification: Performance of collectPreVariables (initialization): time 0.0007581/1.708, allocations: 120.8 kB / 0.7725 GB, free: 110.2 MB / 494.3 MB Notification: Performance of collectInitialEqns (initialization): time 0.002918/1.711, allocations: 7.596 MB / 0.7799 GB, free: 104.8 MB / 494.3 MB Notification: Performance of collectInitialBindings (initialization): time 0.001722/1.712, allocations: 2.05 MB / 0.7819 GB, free: 103.2 MB / 494.3 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002505/1.715, allocations: 2.095 MB / 0.784 GB, free: 102.2 MB / 494.3 MB Notification: Performance of setup shared object (initialization): time 3.755e-05/1.715, allocations: 305.1 kB / 0.7843 GB, free: 101.9 MB / 494.3 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005701/1.721, allocations: 4.813 MB / 0.789 GB, free: 99.45 MB / 494.3 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00756/1.728, allocations: 9.555 MB / 0.7983 GB, free: 88.61 MB / 494.3 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01511/1.743, allocations: 15.46 MB / 0.8134 GB, free: 71.62 MB / 494.3 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001737/1.743, allocations: 48 kB / 0.8135 GB, free: 71.57 MB / 494.3 MB Notification: Performance of matching and sorting (n=1342) (initialization): time 0.02293/1.766, allocations: 15.53 MB / 0.8286 GB, free: 55.95 MB / 494.3 MB Notification: Performance of prepare postOptimizeDAE: time 8.286e-05/1.766, allocations: 76.5 kB / 0.8287 GB, free: 55.88 MB / 494.3 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001891/1.767, allocations: 164 kB / 0.8289 GB, free: 55.72 MB / 494.3 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00529/1.772, allocations: 1.653 MB / 0.8305 GB, free: 54.06 MB / 494.3 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007553/1.78, allocations: 2.359 MB / 0.8328 GB, free: 51.7 MB / 494.3 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01216/1.792, allocations: 10.84 MB / 0.8434 GB, free: 40.73 MB / 494.3 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007147/1.799, allocations: 1.351 MB / 0.8447 GB, free: 39.37 MB / 494.3 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001517/1.8, allocations: 0.5273 MB / 0.8452 GB, free: 38.84 MB / 494.3 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 728 * 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 (1249): * Single equations (assignments): 1240 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 8 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(6,80,75.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.01003/1.81, allocations: 7.149 MB / 0.8522 GB, free: 31.67 MB / 494.3 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001419/1.812, allocations: 0.6133 MB / 0.8528 GB, free: 31.05 MB / 494.3 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01347/1.825, allocations: 10.29 MB / 0.8628 GB, free: 20.66 MB / 494.3 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.009751/1.835, allocations: 7.931 MB / 0.8706 GB, free: 12.64 MB / 494.3 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.222e-05/1.835, allocations: 16 kB / 0.8706 GB, free: 12.62 MB / 494.3 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.297e-05/1.835, allocations: 34.28 kB / 0.8706 GB, free: 12.59 MB / 494.3 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04345/1.879, allocations: 26.48 MB / 0.8965 GB, free: 1.609 MB / 0.4983 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.827e-05/1.879, allocations: 8 kB / 0.8965 GB, free: 1.602 MB / 0.4983 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004111/1.883, allocations: 1.006 MB / 0.8975 GB, free: 0.5938 MB / 0.4983 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.005353/1.888, allocations: 1.465 MB / 0.8989 GB, free: 15.12 MB / 0.5139 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005822/1.889, allocations: 132 kB / 0.899 GB, free: 14.99 MB / 0.5139 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01426/1.903, allocations: 10.41 MB / 0.9092 GB, free: 4.469 MB / 0.5139 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.268e-06/1.903, allocations: 8 kB / 0.9092 GB, free: 4.461 MB / 0.5139 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2076/2.111, allocations: 14.37 MB / 0.9232 GB, free: 161 MB / 0.5139 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003274/2.114, allocations: 1.453 MB / 0.9247 GB, free: 160.5 MB / 0.5139 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001221/2.115, allocations: 108.6 kB / 0.9248 GB, free: 160.4 MB / 0.5139 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00299/2.118, allocations: 329.5 kB / 0.9251 GB, free: 160.4 MB / 0.5139 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008447/2.119, allocations: 400.3 kB / 0.9255 GB, free: 160.3 MB / 0.5139 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003593/2.12, allocations: 169 kB / 0.9256 GB, free: 160.2 MB / 0.5139 GB Notification: Performance of sorting global known variables: time 0.006238/2.126, allocations: 4.312 MB / 0.9298 GB, free: 158.7 MB / 0.5139 GB Notification: Performance of sort global known variables: time 7.92e-07/2.126, allocations: 3.375 kB / 0.9298 GB, free: 158.7 MB / 0.5139 GB Notification: Performance of remove unused functions: time 0.01017/2.136, allocations: 4.035 MB / 0.9338 GB, free: 157.4 MB / 0.5139 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 36 * Number of states: 1 (source.plug_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 (534): * Single equations (assignments): 525 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 8 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(6,80,77.8%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.001063/2.137, allocations: 326.5 kB / 0.9341 GB, free: 157.2 MB / 0.5139 GB Notification: Performance of simCode: created initialization part: time 0.02217/2.159, allocations: 11.5 MB / 0.9453 GB, free: 152.9 MB / 0.5139 GB Notification: Performance of simCode: created event and clocks part: time 1.966e-05/2.159, allocations: 7.281 kB / 0.9453 GB, free: 152.9 MB / 0.5139 GB Notification: Performance of simCode: created simulation system equations: time 0.01006/2.169, allocations: 4.726 MB / 0.9499 GB, free: 151 MB / 0.5139 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0112/2.181, allocations: 1.475 MB / 0.9514 GB, free: 150.5 MB / 0.5139 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0563/2.237, allocations: 36.85 MB / 0.9874 GB, free: 122.9 MB / 0.5139 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01215/2.249, allocations: 11.28 MB / 0.9984 GB, free: 114.2 MB / 0.5139 GB Notification: Performance of simCode: alias equations: time 0.008974/2.258, allocations: 3.764 MB / 1.002 GB, free: 111.7 MB / 0.5139 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001522/2.26, allocations: 0.5177 MB / 1.003 GB, free: 111.2 MB / 0.5139 GB Notification: Performance of SimCode: time 7.71e-07/2.26, allocations: 0 / 1.003 GB, free: 111.2 MB / 0.5139 GB Notification: Performance of Templates: time 0.1413/2.401, allocations: 100.7 MB / 1.101 GB, free: 11.54 MB / 0.5139 GB make -j1 -f Modelica_trunk_Modelica.Electrical.QuasiStatic.Machines.Examples.TransformerTestbench.makefile (rm -f Modelica_trunk_Modelica.Electrical.QuasiStatic.Machines.Examples.TransformerTestbench.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.QuasiStatic.Machines.Examples.TransformerTestbench.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.QuasiStatic.Machines.Examples.TransformerTestbench.pipe >> ../files/Modelica_trunk_Modelica.Electrical.QuasiStatic.Machines.Examples.TransformerTestbench.sim & ./Modelica_trunk_Modelica.Electrical.QuasiStatic.Machines.Examples.TransformerTestbench -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.QuasiStatic.Machines.Examples.TransformerTestbench.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Electrical.QuasiStatic.Machines.Examples.TransformerTestbench_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/QuasiStatic/Machines/Examples/TransformerTestbench/TransformerTestbench.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.QuasiStatic.Machines.Examples.TransformerTestbench.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches