Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.QuasiStatic.Machines.Examples.TransformerTestbench.conf.json 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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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) 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_4.0.0_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_4.0.0_Modelica.Electrical.QuasiStatic.Machines.Examples.TransformerTestbench") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001125/0.001125, allocations: 183.7 kB / 8.138 MB, free: 2.184 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.285/1.285, allocations: 221.4 MB / 229.9 MB, free: 3.023 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009551/0.000955, allocations: 103.1 kB / 280.8 MB, free: 1.25 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 6.823e-06/6.863e-06, allocations: 0 / 336.5 MB, free: 9.52 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2176/0.2176, allocations: 50.39 MB / 386.9 MB, free: 37.98 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1151/0.3327, allocations: 103.6 MB / 490.5 MB, free: 15.22 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003001/0.3331, allocations: 84.94 kB / 490.5 MB, free: 15.14 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.232/2.565, allocations: 0.7941 GB / 1.273 GB, free: 32.78 MB / 490.7 MB Notification: Performance of Transformations before backend: time 0.0009024/2.566, allocations: 387.4 kB / 1.274 GB, free: 32.72 MB / 490.7 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.05003/2.616, allocations: 15.92 MB / 1.289 GB, free: 28.07 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.664e-05/2.616, allocations: 10.38 kB / 1.289 GB, free: 28.07 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03363/2.649, allocations: 5.669 MB / 1.295 GB, free: 27.13 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0251/2.675, allocations: 12.02 MB / 1.306 GB, free: 25.3 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.00089/2.675, allocations: 0.5396 MB / 1.307 GB, free: 25.3 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00573/2.681, allocations: 0.9624 MB / 1.308 GB, free: 25.3 MB / 490.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.044/2.725, allocations: 21.7 MB / 1.329 GB, free: 6.59 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.07214/2.797, allocations: 26.24 MB / 1.355 GB, free: 0.9844 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005977/2.798, allocations: 19.81 kB / 1.355 GB, free: 0.9648 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00441/2.802, allocations: 12 kB / 1.355 GB, free: 0.9531 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.1925/2.995, allocations: 1.356 MB / 1.356 GB, free: 85.54 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1299/3.125, allocations: 84.98 MB / 1.439 GB, free: 71.74 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.012/3.137, allocations: 8.383 MB / 1.447 GB, free: 70.81 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.006374/3.143, allocations: 4.965 MB / 1.452 GB, free: 68.99 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000578/3.144, allocations: 234.3 kB / 1.452 GB, free: 68.87 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.844e-05/3.144, allocations: 100.4 kB / 1.452 GB, free: 68.79 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=613): time 8.376e-06/3.144, allocations: 0.9062 kB / 1.452 GB, free: 68.79 MB / 0.4948 GB Notification: Performance of matching and sorting (n=613): time 0.01597/3.16, allocations: 9.434 MB / 1.462 GB, free: 65.43 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.278e-05/3.16, allocations: 138.5 kB / 1.462 GB, free: 65.32 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008049/3.168, allocations: 5.341 MB / 1.467 GB, free: 63.31 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 0.0009891/3.169, allocations: 27.11 kB / 1.467 GB, free: 63.28 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.003306/3.172, allocations: 6.984 MB / 1.474 GB, free: 58.12 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.002425/3.175, allocations: 2.044 MB / 1.476 GB, free: 56.54 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007244/3.176, allocations: 4 kB / 1.476 GB, free: 56.53 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.0006145/3.176, allocations: 0.751 MB / 1.476 GB, free: 56.04 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00698/3.183, allocations: 5.153 MB / 1.482 GB, free: 54.12 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01025/3.194, allocations: 9.793 MB / 1.491 GB, free: 45.97 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01432/3.208, allocations: 7.877 MB / 1.499 GB, free: 43.14 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002621/3.208, allocations: 45.69 kB / 1.499 GB, free: 43.14 MB / 0.4948 GB Notification: Performance of matching and sorting (n=1365) (initialization): time 0.03094/3.239, allocations: 15.66 MB / 1.514 GB, free: 38.31 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 2.147e-05/3.239, allocations: 2.719 kB / 1.514 GB, free: 38.31 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003651/3.24, allocations: 159.7 kB / 1.514 GB, free: 38.31 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003734/3.243, allocations: 1.486 MB / 1.516 GB, free: 37.98 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.009829/3.253, allocations: 2.302 MB / 1.518 GB, free: 37.23 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01412/3.267, allocations: 11.16 MB / 1.529 GB, free: 27.34 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008968/3.276, allocations: 1.112 MB / 1.53 GB, free: 26.28 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002345/3.279, allocations: 0.5397 MB / 1.53 GB, free: 25.75 MB / 0.4948 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 727 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1248): * Single equations (assignments): 1227 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 20 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(6,80.6%) 92} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.00244/3.281, allocations: 0.4943 MB / 1.531 GB, free: 25.25 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001273/3.282, allocations: 0.6017 MB / 1.532 GB, free: 24.64 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01939/3.302, allocations: 11.41 MB / 1.543 GB, free: 15.2 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01319/3.315, allocations: 8.713 MB / 1.551 GB, free: 7.691 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.758e-05/3.315, allocations: 12 kB / 1.551 GB, free: 7.68 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.228e-05/3.315, allocations: 29.16 kB / 1.551 GB, free: 7.68 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2442/3.559, allocations: 24.1 MB / 1.575 GB, free: 73.57 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.181e-05/3.559, allocations: 7.25 kB / 1.575 GB, free: 73.57 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004723/3.564, allocations: 0.9649 MB / 1.576 GB, free: 73.57 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003194/3.567, allocations: 1.271 MB / 1.577 GB, free: 73.56 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007752/3.568, allocations: 45.52 kB / 1.577 GB, free: 73.56 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01357/3.582, allocations: 10.84 MB / 1.588 GB, free: 72.25 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.036e-05/3.582, allocations: 15.53 kB / 1.588 GB, free: 72.25 MB / 0.4948 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.02299/3.605, allocations: 17.08 MB / 1.604 GB, free: 70.13 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.004863/3.61, allocations: 1.545 MB / 1.606 GB, free: 69.8 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002074/3.612, allocations: 14.44 kB / 1.606 GB, free: 69.8 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004646/3.617, allocations: 209.1 kB / 1.606 GB, free: 69.8 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008887/3.617, allocations: 323.2 kB / 1.606 GB, free: 69.79 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004506/3.618, allocations: 174.7 kB / 1.606 GB, free: 69.79 MB / 0.4948 GB Notification: Performance of sort global known variables: time 0.007072/3.625, allocations: 3.915 MB / 1.61 GB, free: 69.61 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.01487/3.64, allocations: 3.778 MB / 1.614 GB, free: 69.06 MB / 0.4948 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 32 * Number of states: 1 (currentSensorL.plug_p.reference.gamma) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (532): * Single equations (assignments): 511 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 20 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(6,77.8%) 92} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001572/3.641, allocations: 304 kB / 1.614 GB, free: 68.98 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.01838/3.66, allocations: 11.93 MB / 1.626 GB, free: 68.66 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 1.128e-05/3.66, allocations: 0 / 1.626 GB, free: 68.66 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.007859/3.668, allocations: 4.967 MB / 1.631 GB, free: 68.5 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007658/3.675, allocations: 1.136 MB / 1.632 GB, free: 68.48 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06062/3.736, allocations: 25.91 MB / 1.657 GB, free: 64.09 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.02089/3.757, allocations: 12.06 MB / 1.669 GB, free: 63.01 MB / 0.4948 GB Notification: Performance of SimCode: time 9.32e-07/3.757, allocations: 0 / 1.669 GB, free: 63.01 MB / 0.4948 GB Notification: Performance of Templates: time 0.4017/4.159, allocations: 114 MB / 1.78 GB, free: 51.59 MB / 0.4948 GB make -j1 -f Modelica_4.0.0_Modelica.Electrical.QuasiStatic.Machines.Examples.TransformerTestbench.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.QuasiStatic.Machines.Examples.TransformerTestbench.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.QuasiStatic.Machines.Examples.TransformerTestbench.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.QuasiStatic.Machines.Examples.TransformerTestbench.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.QuasiStatic.Machines.Examples.TransformerTestbench.sim & ./Modelica_4.0.0_Modelica.Electrical.QuasiStatic.Machines.Examples.TransformerTestbench -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.QuasiStatic.Machines.Examples.TransformerTestbench.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_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","../files/Modelica_4.0.0_Modelica.Electrical.QuasiStatic.Machines.Examples.TransformerTestbench.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches