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/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) 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) 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") [: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 trunk/package.mo): time 0.001522/0.001521, allocations: 196.2 kB / 8.538 MB, free: 1.809 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.261/1.261, allocations: 225.5 MB / 234.4 MB, free: 3.27 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009533/0.0009534, allocations: 94.75 kB / 286.3 MB, free: 5.309 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 7.303e-06/7.344e-06, allocations: 0 / 343.1 MB, free: 8.66 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1072/0.1072, allocations: 51.49 MB / 394.6 MB, free: 5.121 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3316/0.4388, allocations: 104.4 MB / 499 MB, free: 4.852 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002076/0.4391, allocations: 84.52 kB / 499.1 MB, free: 4.809 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.673/3.112, allocations: 0.8371 GB / 1.325 GB, free: 18.25 MB / 490.7 MB Notification: Performance of Transformations before backend: time 0.00156/3.114, allocations: 386.1 kB / 1.325 GB, free: 18.21 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.06005/3.174, allocations: 15.95 MB / 1.34 GB, free: 13.61 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.375e-05/3.174, allocations: 6.156 kB / 1.34 GB, free: 13.61 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03664/3.211, allocations: 5.682 MB / 1.346 GB, free: 12.67 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02795/3.239, allocations: 12.03 MB / 1.358 GB, free: 11.3 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0009943/3.24, allocations: 0.5441 MB / 1.358 GB, free: 11.29 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.006712/3.247, allocations: 0.9619 MB / 1.359 GB, free: 11.29 MB / 490.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.04858/3.295, allocations: 21.69 MB / 1.38 GB, free: 11.21 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.06728/3.362, allocations: 25.78 MB / 1.406 GB, free: 8.277 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0007464/3.363, allocations: 14.16 kB / 1.406 GB, free: 8.273 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004813/3.368, allocations: 14.34 kB / 1.406 GB, free: 8.27 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001299/3.369, allocations: 1.349 MB / 1.407 GB, free: 7.91 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.364/3.733, allocations: 85.86 MB / 1.491 GB, free: 55.27 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.012/3.745, allocations: 8.4 MB / 1.499 GB, free: 55.2 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00628/3.752, allocations: 4.963 MB / 1.504 GB, free: 55.15 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006039/3.752, allocations: 313.9 kB / 1.504 GB, free: 54.95 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.687e-05/3.752, allocations: 96.25 kB / 1.504 GB, free: 54.91 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=613): time 7.284e-06/3.752, allocations: 0 / 1.504 GB, free: 54.91 MB / 0.5105 GB Notification: Performance of matching and sorting (n=613): time 0.01649/3.769, allocations: 9.435 MB / 1.513 GB, free: 54.7 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.842e-05/3.769, allocations: 140.5 kB / 1.514 GB, free: 54.6 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009207/3.778, allocations: 5.347 MB / 1.519 GB, free: 54.32 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.001181/3.78, allocations: 30.62 kB / 1.519 GB, free: 54.29 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.004064/3.784, allocations: 6.986 MB / 1.526 GB, free: 50.86 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.00317/3.787, allocations: 2.038 MB / 1.528 GB, free: 49.55 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008178/3.788, allocations: 1.406 kB / 1.528 GB, free: 49.55 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.000675/3.788, allocations: 0.7504 MB / 1.528 GB, free: 49.22 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007116/3.795, allocations: 5.153 MB / 1.533 GB, free: 49.2 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.009588/3.805, allocations: 9.796 MB / 1.543 GB, free: 43.39 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01253/3.818, allocations: 7.881 MB / 1.551 GB, free: 43.24 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002781/3.818, allocations: 46.12 kB / 1.551 GB, free: 43.24 MB / 0.5105 GB Notification: Performance of matching and sorting (n=1365) (initialization): time 0.03049/3.848, allocations: 15.65 MB / 1.566 GB, free: 42.55 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 1.905e-05/3.848, allocations: 10.09 kB / 1.566 GB, free: 42.55 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003381/3.849, allocations: 158.9 kB / 1.566 GB, free: 42.55 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003346/3.852, allocations: 1.484 MB / 1.568 GB, free: 42.5 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008745/3.861, allocations: 2.299 MB / 1.57 GB, free: 42.5 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01361/3.875, allocations: 11.16 MB / 1.581 GB, free: 40.92 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008608/3.883, allocations: 1.112 MB / 1.582 GB, free: 40.28 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001838/3.885, allocations: 0.5413 MB / 1.582 GB, free: 40.28 MB / 0.5105 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.001616/3.887, allocations: 0.4983 MB / 1.583 GB, free: 40.07 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001057/3.888, allocations: 0.6015 MB / 1.583 GB, free: 39.74 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01802/3.906, allocations: 11.4 MB / 1.595 GB, free: 39.23 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01393/3.92, allocations: 8.711 MB / 1.603 GB, free: 38.75 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.086e-05/3.92, allocations: 14.56 kB / 1.603 GB, free: 38.75 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.895e-05/3.92, allocations: 28.22 kB / 1.603 GB, free: 38.75 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04932/3.969, allocations: 24.34 MB / 1.627 GB, free: 28.72 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.714e-05/3.969, allocations: 9.5 kB / 1.627 GB, free: 28.72 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005267/3.975, allocations: 0.9702 MB / 1.628 GB, free: 28.69 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003419/3.978, allocations: 1.265 MB / 1.629 GB, free: 28.36 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001163/3.979, allocations: 48.09 kB / 1.629 GB, free: 28.35 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01414/3.993, allocations: 10.83 MB / 1.64 GB, free: 21.2 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.015e-05/3.993, allocations: 9.125 kB / 1.64 GB, free: 21.2 MB / 0.5105 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.025/4.018, allocations: 17.08 MB / 1.656 GB, free: 5.703 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.004709/4.023, allocations: 1.54 MB / 1.658 GB, free: 4.277 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002261/4.025, allocations: 15.09 kB / 1.658 GB, free: 4.266 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004664/4.03, allocations: 210.2 kB / 1.658 GB, free: 4.129 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009004/4.031, allocations: 331.3 kB / 1.658 GB, free: 3.934 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004441/4.032, allocations: 172.8 kB / 1.659 GB, free: 3.773 MB / 0.5105 GB Notification: Performance of sort global known variables: time 0.005845/4.037, allocations: 3.914 MB / 1.662 GB, free: 428 kB / 0.5105 GB Notification: Performance of remove unused functions: time 0.2794/4.317, allocations: 4.29 MB / 1.667 GB, free: 65.73 MB / 0.5105 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.001724/4.319, allocations: 296.7 kB / 1.667 GB, free: 65.64 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.01934/4.338, allocations: 11.94 MB / 1.679 GB, free: 65.32 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 1.434e-05/4.338, allocations: 7.844 kB / 1.679 GB, free: 65.32 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.007996/4.346, allocations: 4.957 MB / 1.683 GB, free: 65.16 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007004/4.353, allocations: 1.147 MB / 1.685 GB, free: 65.14 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0605/4.414, allocations: 26.03 MB / 1.71 GB, free: 60.75 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.02463/4.438, allocations: 12.07 MB / 1.722 GB, free: 59.68 MB / 0.5105 GB Notification: Performance of SimCode: time 7.91e-07/4.438, allocations: 0 / 1.722 GB, free: 59.68 MB / 0.5105 GB Notification: Performance of Templates: time 0.1857/4.624, allocations: 113.9 MB / 1.833 GB, free: 34.47 MB / 0.5105 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","../files/Modelica_trunk_Modelica.Electrical.QuasiStatic.Machines.Examples.TransformerTestbench.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches