Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.Transformers.TransformerTestbench.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.Machines.Examples.Transformers.TransformerTestbench,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|transformer.l2sigma.inductor.1..i|transformer.l2sigma.inductor.3..i",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.Transformers.TransformerTestbench") translateModel(Modelica.Electrical.Machines.Examples.Transformers.TransformerTestbench,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|transformer.l2sigma.inductor.1..i|transformer.l2sigma.inductor.3..i",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.Transformers.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 3.2.3+maint.om/package.mo): time 0.001584/0.001584, allocations: 175.4 kB / 8.151 MB, free: 2.215 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.614/1.614, allocations: 205.2 MB / 213.8 MB, free: 13.93 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.001281/0.001281, allocations: 95.5 kB / 261.8 MB, free: 13.64 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 1.092e-05/1.099e-05, allocations: 4 kB / 314.3 MB, free: 9.059 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2289/0.229, allocations: 47.55 MB / 361.8 MB, free: 45.69 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1405/0.3696, allocations: 91.25 MB / 453.1 MB, free: 10.8 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003182/0.3699, allocations: 85.02 kB / 453.2 MB, free: 10.71 MB / 346.7 MB Notification: Performance of FrontEnd: time 0.5048/0.8747, allocations: 73.29 MB / 0.5141 GB, free: 86.14 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0003265/0.8751, allocations: 90.64 kB / 0.5142 GB, free: 86.13 MB / 394.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 772 * Number of variables: 772 Notification: Performance of Generate backend data structure: time 0.01301/0.8881, allocations: 2.879 MB / 0.517 GB, free: 85.05 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.533e-05/0.8882, allocations: 7.344 kB / 0.517 GB, free: 85.05 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003272/0.8915, allocations: 398.9 kB / 0.5174 GB, free: 84.88 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01107/0.9026, allocations: 2.194 MB / 0.5196 GB, free: 84.39 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003022/0.903, allocations: 96.34 kB / 0.5196 GB, free: 84.39 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001645/0.9047, allocations: 168.6 kB / 0.5198 GB, free: 84.39 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01281/0.9175, allocations: 3.021 MB / 0.5228 GB, free: 84.38 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0171/0.9347, allocations: 3.695 MB / 0.5264 GB, free: 83.92 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000131/0.9349, allocations: 0 / 0.5264 GB, free: 83.92 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001148/0.9361, allocations: 3.219 kB / 0.5264 GB, free: 83.92 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002207/0.9363, allocations: 143.7 kB / 0.5265 GB, free: 83.91 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03734/0.9737, allocations: 10.5 MB / 0.5368 GB, free: 80.86 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00371/0.9775, allocations: 1.519 MB / 0.5382 GB, free: 80.32 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003264/0.9808, allocations: 1.353 MB / 0.5396 GB, free: 79.88 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004449/0.9813, allocations: 145.2 kB / 0.5397 GB, free: 79.78 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.785e-05/0.9813, allocations: 54.06 kB / 0.5397 GB, free: 79.72 MB / 394.7 MB Notification: Performance of pre-optimization done (n=128): time 5.43e-06/0.9813, allocations: 3.656 kB / 0.5397 GB, free: 79.72 MB / 394.7 MB Notification: Performance of matching and sorting (n=133): time 0.01339/0.9947, allocations: 4.315 MB / 0.544 GB, free: 77.8 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.028e-05/0.9948, allocations: 89.77 kB / 0.544 GB, free: 77.71 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003569/0.9984, allocations: 1.464 MB / 0.5455 GB, free: 77.15 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003471/0.9988, allocations: 29.52 kB / 0.5455 GB, free: 77.12 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004667/0.9993, allocations: 1.035 MB / 0.5465 GB, free: 76.32 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005327/0.9999, allocations: 443.7 kB / 0.5469 GB, free: 75.98 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001321/1, allocations: 0 / 0.5469 GB, free: 75.98 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001292/1, allocations: 374.1 kB / 0.5473 GB, free: 75.64 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002006/1.002, allocations: 0.7867 MB / 0.5481 GB, free: 75.35 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002503/1.005, allocations: 1.138 MB / 0.5492 GB, free: 74.64 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002838/1.008, allocations: 1.004 MB / 0.5502 GB, free: 74.27 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.925e-05/1.008, allocations: 7.25 kB / 0.5502 GB, free: 74.27 MB / 394.7 MB Notification: Performance of matching and sorting (n=188) (initialization): time 0.007099/1.015, allocations: 2.282 MB / 0.5524 GB, free: 73.5 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.435e-05/1.015, allocations: 5.875 kB / 0.5524 GB, free: 73.5 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.621e-05/1.015, allocations: 15.91 kB / 0.5524 GB, free: 73.5 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001433/1.016, allocations: 355.5 kB / 0.5528 GB, free: 73.4 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003075/1.02, allocations: 320 kB / 0.5531 GB, free: 73.39 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009027/1.029, allocations: 3.994 MB / 0.557 GB, free: 70.94 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001636/1.03, allocations: 44.72 kB / 0.557 GB, free: 70.93 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004145/1.031, allocations: 60.59 kB / 0.5571 GB, free: 70.92 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 45 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (154): * Single equations (assignments): 149 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * 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,55.6%) 25} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0004176/1.031, allocations: 72.48 kB / 0.5571 GB, free: 70.86 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000777/1.032, allocations: 170.6 kB / 0.5573 GB, free: 70.78 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007005/1.039, allocations: 2.094 MB / 0.5593 GB, free: 70.01 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.137e-05/1.039, allocations: 12.84 kB / 0.5593 GB, free: 70.01 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.725e-05/1.039, allocations: 4.188 kB / 0.5594 GB, free: 70.01 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.413e-05/1.039, allocations: 11.03 kB / 0.5594 GB, free: 70.01 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01464/1.054, allocations: 4.686 MB / 0.5639 GB, free: 68.16 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.942e-05/1.054, allocations: 3.938 kB / 0.5639 GB, free: 68.16 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002238/1.056, allocations: 222.8 kB / 0.5642 GB, free: 68.14 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001714/1.058, allocations: 366.2 kB / 0.5645 GB, free: 67.91 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003205/1.058, allocations: 18.19 kB / 0.5645 GB, free: 67.9 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007687/1.066, allocations: 3.937 MB / 0.5684 GB, free: 64.24 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.993e-06/1.066, allocations: 0 / 0.5684 GB, free: 64.24 MB / 394.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.008148/1.074, allocations: 3.287 MB / 0.5716 GB, free: 61.27 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001642/1.076, allocations: 446.6 kB / 0.572 GB, free: 60.86 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006315/1.077, allocations: 19.73 kB / 0.572 GB, free: 60.84 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002256/1.079, allocations: 74.81 kB / 0.5721 GB, free: 60.79 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003827/1.079, allocations: 70.06 kB / 0.5722 GB, free: 60.75 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001657/1.08, allocations: 43.94 kB / 0.5722 GB, free: 60.71 MB / 394.7 MB Notification: Performance of sort global known variables: time 0.002568/1.082, allocations: 1.102 MB / 0.5733 GB, free: 59.73 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.003079/1.085, allocations: 0.5036 MB / 0.5738 GB, free: 59.23 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 2 (transformer.l2sigma.inductor[2].i,transformer.l2sigma.inductor[3].i) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (100): * Single equations (assignments): 95 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * 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 {(2,100.0%) 29} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0007406/1.086, allocations: 206.9 kB / 0.574 GB, free: 59.05 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.005194/1.091, allocations: 2.184 MB / 0.5761 GB, free: 57.04 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 8.987e-06/1.091, allocations: 5.281 kB / 0.5761 GB, free: 57.04 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003274/1.095, allocations: 1.236 MB / 0.5773 GB, free: 55.89 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003405/1.098, allocations: 343.7 kB / 0.5776 GB, free: 55.62 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01532/1.113, allocations: 4.636 MB / 0.5822 GB, free: 51.48 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004636/1.118, allocations: 2.548 MB / 0.5847 GB, free: 49.46 MB / 394.7 MB Notification: Performance of SimCode: time 1.884e-06/1.118, allocations: 0 / 0.5847 GB, free: 49.46 MB / 394.7 MB Notification: Performance of Templates: time 0.08194/1.2, allocations: 47.24 MB / 0.6308 GB, free: 4.75 MB / 394.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.Transformers.TransformerTestbench.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.Transformers.TransformerTestbench.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.Transformers.TransformerTestbench.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.Transformers.TransformerTestbench.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.Transformers.TransformerTestbench.sim & ./Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.Transformers.TransformerTestbench --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.Transformers.TransformerTestbench.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.Transformers.TransformerTestbench_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Machines/Examples/Transformers/TransformerTestbench/TransformerTestbench.csv","../files/Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.Transformers.TransformerTestbench.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches