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.001626/0.001626, allocations: 113.7 kB / 18.46 MB, free: 4.574 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002175/0.002175, allocations: 206.7 kB / 19.4 MB, free: 3.633 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.386/1.386, allocations: 227.4 MB / 247.6 MB, free: 10.46 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00129/0.001291, allocations: 55.91 kB / 359.4 MB, free: 12.89 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2654/0.2667, allocations: 50.55 MB / 409.9 MB, free: 1.547 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.QuasiStatic.Machines.Examples.TransformerTestbench): time 0.0278/0.2946, allocations: 28.61 MB / 438.6 MB, free: 4.801 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01562/0.3102, allocations: 7.187 MB / 445.7 MB, free: 13.59 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005899/0.3162, allocations: 263.2 kB / 446 MB, free: 13.34 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.02767/0.3439, allocations: 13.1 MB / 459.1 MB, free: 212 kB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01074/0.3547, allocations: 2.535 MB / 461.6 MB, free: 13.66 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005972/0.3607, allocations: 2.022 MB / 463.7 MB, free: 11.64 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.02065/0.3813, allocations: 18.27 MB / 481.9 MB, free: 9.305 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.07298/0.4543, allocations: 44.46 MB / 0.514 GB, free: 12.62 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01647/0.4709, allocations: 9.944 MB / 0.5238 GB, free: 2.668 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01782/0.4887, allocations: 11.06 MB / 0.5346 GB, free: 7.562 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 0.007943/0.4967, allocations: 2.918 MB / 0.5374 GB, free: 4.645 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01022/0.507, allocations: 3.199 MB / 0.5405 GB, free: 1.449 MB / 462.1 MB Notification: Performance of NFScalarize.scalarize: time 0.4618/0.9688, allocations: 5.477 MB / 0.5459 GB, free: 59.64 MB / 462.1 MB Notification: Performance of NFVerifyModel.verify: time 0.02132/0.9902, allocations: 10.82 MB / 0.5564 GB, free: 58.78 MB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 0.03564/1.026, allocations: 39.02 MB / 0.5945 GB, free: 38.56 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.032e-06/1.026, allocations: 0 / 0.5945 GB, free: 38.56 MB / 462.1 MB Notification: Performance of FrontEnd: time 1.974e-06/1.026, allocations: 0 / 0.5945 GB, free: 38.56 MB / 462.1 MB Notification: Performance of Transformations before backend: time 0.001185/1.027, allocations: 4.797 kB / 0.5946 GB, free: 38.56 MB / 462.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.06035/1.087, allocations: 21.94 MB / 0.616 GB, free: 25.03 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.419e-05/1.088, allocations: 8.219 kB / 0.616 GB, free: 25.03 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0433/1.131, allocations: 8.362 MB / 0.6241 GB, free: 17.15 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02484/1.156, allocations: 11.62 MB / 0.6355 GB, free: 5.953 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001114/1.157, allocations: 1.338 MB / 0.6368 GB, free: 4.625 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.007947/1.165, allocations: 1.76 MB / 0.6385 GB, free: 2.875 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.07515/1.24, allocations: 28.71 MB / 0.6666 GB, free: 6.125 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0009341/1.241, allocations: 19.84 kB / 0.6666 GB, free: 6.105 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.008229/1.249, allocations: 0.7253 MB / 0.6673 GB, free: 5.391 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000995/1.25, allocations: 0.8493 MB / 0.6681 GB, free: 4.539 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.06255/1.313, allocations: 24.78 MB / 0.6923 GB, free: 11.73 MB / 0.5138 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.5116/1.824, allocations: 87.27 MB / 0.7775 GB, free: 143.6 MB / 0.5607 GB Notification: Performance of preOpt comSubExp (simulation): time 0.02336/1.848, allocations: 35.13 MB / 0.8119 GB, free: 116.1 MB / 0.5607 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.007844/1.856, allocations: 5.443 MB / 0.8172 GB, free: 116 MB / 0.5607 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006322/1.856, allocations: 283.3 kB / 0.8174 GB, free: 115.8 MB / 0.5607 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.82e-05/1.857, allocations: 96.02 kB / 0.8175 GB, free: 115.8 MB / 0.5607 GB Notification: Performance of pre-optimization done (n=577): time 1.216e-05/1.857, allocations: 3.625 kB / 0.8175 GB, free: 115.8 MB / 0.5607 GB Notification: Performance of matching and sorting (n=577): time 0.03268/1.889, allocations: 14.72 MB / 0.8319 GB, free: 114.9 MB / 0.5607 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.278e-05/1.889, allocations: 137.8 kB / 0.832 GB, free: 114.8 MB / 0.5607 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01258/1.902, allocations: 6.416 MB / 0.8383 GB, free: 113.1 MB / 0.5607 GB Notification: Performance of collectPreVariables (initialization): time 0.001064/1.903, allocations: 119.8 kB / 0.8384 GB, free: 113 MB / 0.5607 GB Notification: Performance of collectInitialEqns (initialization): time 0.004775/1.908, allocations: 7.611 MB / 0.8459 GB, free: 106.7 MB / 0.5607 GB Notification: Performance of collectInitialBindings (initialization): time 0.002265/1.91, allocations: 2.02 MB / 0.8478 GB, free: 105 MB / 0.5607 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.005578/1.916, allocations: 2.085 MB / 0.8499 GB, free: 103.8 MB / 0.5607 GB Notification: Performance of setup shared object (initialization): time 4.107e-05/1.916, allocations: 301.1 kB / 0.8502 GB, free: 103.5 MB / 0.5607 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006936/1.923, allocations: 4.733 MB / 0.8548 GB, free: 101 MB / 0.5607 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.009344/1.932, allocations: 9.463 MB / 0.864 GB, free: 91.97 MB / 0.5607 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0164/1.949, allocations: 15.31 MB / 0.879 GB, free: 75.23 MB / 0.5607 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000206/1.949, allocations: 44 kB / 0.879 GB, free: 75.18 MB / 0.5607 GB Notification: Performance of matching and sorting (n=1330) (initialization): time 0.0255/1.974, allocations: 15.38 MB / 0.894 GB, free: 59.71 MB / 0.5607 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001781/1.975, allocations: 74.81 kB / 0.8941 GB, free: 59.64 MB / 0.5607 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002474/1.975, allocations: 160 kB / 0.8943 GB, free: 59.48 MB / 0.5607 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00551/1.98, allocations: 1.653 MB / 0.8959 GB, free: 57.83 MB / 0.5607 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008087/1.988, allocations: 2.355 MB / 0.8982 GB, free: 55.47 MB / 0.5607 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01392/2.002, allocations: 11.6 MB / 0.9095 GB, free: 43.75 MB / 0.5607 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008194/2.011, allocations: 1.347 MB / 0.9108 GB, free: 42.39 MB / 0.5607 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0022/2.013, allocations: 0.5389 MB / 0.9113 GB, free: 41.85 MB / 0.5607 GB 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 (1243): * Single equations (assignments): 1240 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * 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 prepare postOptimizeDAE: time 0.0131/2.026, allocations: 7.145 MB / 0.9183 GB, free: 34.69 MB / 0.5607 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001685/2.028, allocations: 0.625 MB / 0.9189 GB, free: 34.05 MB / 0.5607 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01619/2.044, allocations: 10.09 MB / 0.9288 GB, free: 23.85 MB / 0.5607 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01087/2.055, allocations: 7.762 MB / 0.9364 GB, free: 16 MB / 0.5607 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.943e-05/2.055, allocations: 15.94 kB / 0.9364 GB, free: 15.99 MB / 0.5607 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.215e-05/2.055, allocations: 31.89 kB / 0.9364 GB, free: 15.96 MB / 0.5607 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05335/2.108, allocations: 25.67 MB / 0.9615 GB, free: 6.035 MB / 0.5763 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.495e-05/2.108, allocations: 11.25 kB / 0.9615 GB, free: 6.027 MB / 0.5763 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004544/2.113, allocations: 1.006 MB / 0.9625 GB, free: 5.02 MB / 0.5763 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.005768/2.119, allocations: 1.462 MB / 0.9639 GB, free: 3.555 MB / 0.5763 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001054/2.12, allocations: 132 kB / 0.964 GB, free: 3.426 MB / 0.5763 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2792/2.399, allocations: 11.14 MB / 0.9749 GB, free: 181.6 MB / 0.5763 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.345e-06/2.399, allocations: 14.78 kB / 0.9749 GB, free: 181.6 MB / 0.5763 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0193/2.418, allocations: 14.1 MB / 0.9887 GB, free: 176.8 MB / 0.5763 GB Notification: Performance of postOpt removeConstants (simulation): time 0.004046/2.423, allocations: 1.438 MB / 0.9901 GB, free: 176 MB / 0.5763 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001575/2.424, allocations: 110.5 kB / 0.9902 GB, free: 175.9 MB / 0.5763 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003492/2.428, allocations: 318.2 kB / 0.9905 GB, free: 175.8 MB / 0.5763 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008693/2.429, allocations: 400.8 kB / 0.9909 GB, free: 175.7 MB / 0.5763 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003315/2.429, allocations: 167.8 kB / 0.991 GB, free: 175.7 MB / 0.5763 GB Notification: Performance of sorting global known variables: time 0.007107/2.436, allocations: 4.306 MB / 0.9952 GB, free: 174.2 MB / 0.5763 GB Notification: Performance of sort global known variables: time 3.6e-07/2.436, allocations: 3.469 kB / 0.9952 GB, free: 174.2 MB / 0.5763 GB Notification: Performance of remove unused functions: time 0.01305/2.449, allocations: 4.031 MB / 0.9992 GB, free: 172.9 MB / 0.5763 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 (528): * Single equations (assignments): 525 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * 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.001616/2.451, allocations: 316.1 kB / 0.9995 GB, free: 172.7 MB / 0.5763 GB Notification: Performance of simCode: created initialization part: time 0.01633/2.467, allocations: 11.37 MB / 1.011 GB, free: 168.4 MB / 0.5763 GB Notification: Performance of simCode: created event and clocks part: time 1.603e-05/2.467, allocations: 3.5 kB / 1.011 GB, free: 168.4 MB / 0.5763 GB Notification: Performance of simCode: created simulation system equations: time 0.008125/2.475, allocations: 4.647 MB / 1.015 GB, free: 166.5 MB / 0.5763 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0106/2.486, allocations: 1.556 MB / 1.017 GB, free: 166 MB / 0.5763 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06837/2.554, allocations: 28.69 MB / 1.045 GB, free: 141.5 MB / 0.5763 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.02485/2.579, allocations: 10.91 MB / 1.055 GB, free: 133 MB / 0.5763 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003428/2.583, allocations: 0.5765 MB / 1.056 GB, free: 132.4 MB / 0.5763 GB Notification: Performance of SimCode: time 1.864e-06/2.583, allocations: 0 / 1.056 GB, free: 132.4 MB / 0.5763 GB Notification: Performance of Templates: time 0.6721/3.255, allocations: 282.3 MB / 1.332 GB, free: 57.55 MB / 0.5763 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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/QuasiStatic/Machines/Examples/TransformerTestbench/TransformerTestbench.csv","/var/lib/jenkins1/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