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.001059/0.001059, allocations: 118.2 kB / 17.79 MB, free: 5.258 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001193/0.001193, allocations: 202 kB / 18.73 MB, free: 4.316 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.36/1.36, allocations: 227.4 MB / 246.9 MB, free: 10.49 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001043/0.001044, allocations: 59.84 kB / 358.7 MB, free: 12.93 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2345/0.2356, allocations: 50.54 MB / 409.2 MB, free: 1.617 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.QuasiStatic.Machines.Examples.TransformerTestbench): time 0.02758/0.2632, allocations: 28.62 MB / 437.9 MB, free: 4.875 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0147/0.2779, allocations: 7.195 MB / 445.1 MB, free: 13.66 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00516/0.2831, allocations: 263.2 kB / 445.3 MB, free: 13.4 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0274/0.3106, allocations: 13.09 MB / 458.4 MB, free: 288 kB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01009/0.3207, allocations: 2.531 MB / 460.9 MB, free: 13.74 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005679/0.3264, allocations: 2.035 MB / 463 MB, free: 11.71 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0201/0.3465, allocations: 18.28 MB / 481.3 MB, free: 9.371 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.06939/0.416, allocations: 44.45 MB / 0.5134 GB, free: 12.7 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01531/0.4313, allocations: 9.933 MB / 0.5231 GB, free: 2.754 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01852/0.4499, allocations: 11.05 MB / 0.5339 GB, free: 7.656 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 0.008738/0.4587, allocations: 2.918 MB / 0.5367 GB, free: 4.738 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01005/0.4688, allocations: 3.199 MB / 0.5398 GB, free: 1.543 MB / 462.1 MB Notification: Performance of NFScalarize.scalarize: time 0.4534/0.9222, allocations: 5.484 MB / 0.5452 GB, free: 59.65 MB / 462.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01898/0.9412, allocations: 10.82 MB / 0.5558 GB, free: 58.79 MB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 0.03204/0.9733, allocations: 39.1 MB / 0.594 GB, free: 38.28 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.119e-06/0.9733, allocations: 0.8125 kB / 0.594 GB, free: 38.28 MB / 462.1 MB Notification: Performance of FrontEnd: time 1.673e-06/0.9733, allocations: 0 / 0.594 GB, free: 38.28 MB / 462.1 MB Notification: Performance of Transformations before backend: time 0.0008421/0.9742, allocations: 0 / 0.594 GB, free: 38.28 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.05416/1.028, allocations: 22.32 MB / 0.6157 GB, free: 24.35 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.616e-05/1.028, allocations: 9.688 kB / 0.6158 GB, free: 24.35 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04177/1.07, allocations: 8.445 MB / 0.624 GB, free: 16.45 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01971/1.09, allocations: 11.66 MB / 0.6354 GB, free: 5.215 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0009326/1.091, allocations: 1.339 MB / 0.6367 GB, free: 3.887 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005556/1.096, allocations: 1.757 MB / 0.6384 GB, free: 2.141 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.06764/1.164, allocations: 28.71 MB / 0.6664 GB, free: 5.387 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006265/1.165, allocations: 19.89 kB / 0.6665 GB, free: 5.367 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.007408/1.172, allocations: 0.7274 MB / 0.6672 GB, free: 4.648 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0008083/1.173, allocations: 0.8454 MB / 0.668 GB, free: 3.801 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.05218/1.225, allocations: 24.78 MB / 0.6922 GB, free: 11 MB / 0.5138 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3694/1.595, allocations: 87.52 MB / 0.7777 GB, free: 143.2 MB / 0.5607 GB Notification: Performance of preOpt comSubExp (simulation): time 0.02062/1.615, allocations: 35.13 MB / 0.812 GB, free: 115.7 MB / 0.5607 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0072/1.622, allocations: 5.438 MB / 0.8173 GB, free: 115.6 MB / 0.5607 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004513/1.623, allocations: 286 kB / 0.8176 GB, free: 115.4 MB / 0.5607 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.939e-05/1.623, allocations: 94.27 kB / 0.8177 GB, free: 115.4 MB / 0.5607 GB Notification: Performance of pre-optimization done (n=577): time 7.674e-06/1.623, allocations: 4 kB / 0.8177 GB, free: 115.4 MB / 0.5607 GB Notification: Performance of matching and sorting (n=577): time 0.02857/1.652, allocations: 14.76 MB / 0.8321 GB, free: 114.5 MB / 0.5607 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.669e-05/1.652, allocations: 135.8 kB / 0.8322 GB, free: 114.4 MB / 0.5607 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008708/1.66, allocations: 6.432 MB / 0.8385 GB, free: 112.6 MB / 0.5607 GB Notification: Performance of collectPreVariables (initialization): time 0.0006447/1.661, allocations: 117.8 kB / 0.8386 GB, free: 112.5 MB / 0.5607 GB Notification: Performance of collectInitialEqns (initialization): time 0.003495/1.665, allocations: 7.898 MB / 0.8463 GB, free: 105.8 MB / 0.5607 GB Notification: Performance of collectInitialBindings (initialization): time 0.001712/1.666, allocations: 2.105 MB / 0.8484 GB, free: 104 MB / 0.5607 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002799/1.669, allocations: 2.096 MB / 0.8504 GB, free: 102.8 MB / 0.5607 GB Notification: Performance of setup shared object (initialization): time 4.281e-05/1.669, allocations: 305.1 kB / 0.8507 GB, free: 102.5 MB / 0.5607 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00562/1.675, allocations: 4.738 MB / 0.8553 GB, free: 99.97 MB / 0.5607 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007781/1.683, allocations: 9.462 MB / 0.8646 GB, free: 90.97 MB / 0.5607 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0138/1.696, allocations: 15.3 MB / 0.8795 GB, free: 73.8 MB / 0.5607 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001055/1.697, allocations: 48 kB / 0.8796 GB, free: 73.76 MB / 0.5607 GB Notification: Performance of matching and sorting (n=1330) (initialization): time 0.01942/1.716, allocations: 15.41 MB / 0.8946 GB, free: 58.27 MB / 0.5607 GB Notification: Performance of prepare postOptimizeDAE: time 8.325e-05/1.716, allocations: 76 kB / 0.8947 GB, free: 58.19 MB / 0.5607 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001672/1.716, allocations: 159.9 kB / 0.8948 GB, free: 58.04 MB / 0.5607 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.004668/1.721, allocations: 1.661 MB / 0.8965 GB, free: 56.37 MB / 0.5607 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006852/1.728, allocations: 2.351 MB / 0.8987 GB, free: 54.02 MB / 0.5607 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01226/1.74, allocations: 11.62 MB / 0.9101 GB, free: 42.27 MB / 0.5607 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007599/1.748, allocations: 1.381 MB / 0.9114 GB, free: 40.88 MB / 0.5607 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001777/1.75, allocations: 0.5273 MB / 0.912 GB, free: 40.36 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.01205/1.762, allocations: 7.157 MB / 0.9189 GB, free: 33.18 MB / 0.5607 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00116/1.763, allocations: 0.6442 MB / 0.9196 GB, free: 32.53 MB / 0.5607 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01304/1.776, allocations: 10.1 MB / 0.9294 GB, free: 22.32 MB / 0.5607 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.008881/1.785, allocations: 7.765 MB / 0.937 GB, free: 14.46 MB / 0.5607 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.951e-05/1.785, allocations: 12 kB / 0.937 GB, free: 14.45 MB / 0.5607 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.346e-05/1.785, allocations: 27.89 kB / 0.9371 GB, free: 14.43 MB / 0.5607 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03935/1.824, allocations: 25.7 MB / 0.9622 GB, free: 4.48 MB / 0.5763 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.352e-05/1.824, allocations: 8 kB / 0.9622 GB, free: 4.473 MB / 0.5763 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003828/1.828, allocations: 1.006 MB / 0.9631 GB, free: 3.465 MB / 0.5763 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.005/1.833, allocations: 1.461 MB / 0.9646 GB, free: 2 MB / 0.5763 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003879/1.833, allocations: 128 kB / 0.9647 GB, free: 1.875 MB / 0.5763 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2723/2.106, allocations: 11.15 MB / 0.9756 GB, free: 182.1 MB / 0.5763 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.247e-06/2.106, allocations: 15.53 kB / 0.9756 GB, free: 182.1 MB / 0.5763 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01799/2.124, allocations: 14.13 MB / 0.9894 GB, free: 176.6 MB / 0.5763 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002754/2.127, allocations: 1.469 MB / 0.9908 GB, free: 175.7 MB / 0.5763 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009373/2.128, allocations: 110.2 kB / 0.9909 GB, free: 175.7 MB / 0.5763 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002719/2.13, allocations: 323 kB / 0.9912 GB, free: 175.6 MB / 0.5763 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000746/2.131, allocations: 396.2 kB / 0.9916 GB, free: 175.5 MB / 0.5763 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003035/2.131, allocations: 165.3 kB / 0.9918 GB, free: 175.5 MB / 0.5763 GB Notification: Performance of sorting global known variables: time 0.00584/2.137, allocations: 4.311 MB / 0.996 GB, free: 174 MB / 0.5763 GB Notification: Performance of sort global known variables: time 2.61e-07/2.137, allocations: 0 / 0.996 GB, free: 174 MB / 0.5763 GB Notification: Performance of remove unused functions: time 0.01085/2.148, allocations: 4.085 MB / 1 GB, free: 172.6 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.001107/2.149, allocations: 319.3 kB / 1 GB, free: 172.4 MB / 0.5763 GB Notification: Performance of simCode: created initialization part: time 0.01467/2.164, allocations: 11.38 MB / 1.011 GB, free: 168.1 MB / 0.5763 GB Notification: Performance of simCode: created event and clocks part: time 1.143e-05/2.164, allocations: 3.5 kB / 1.011 GB, free: 168.1 MB / 0.5763 GB Notification: Performance of simCode: created simulation system equations: time 0.006529/2.171, allocations: 4.65 MB / 1.016 GB, free: 166.2 MB / 0.5763 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007271/2.178, allocations: 1.56 MB / 1.017 GB, free: 165.7 MB / 0.5763 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04369/2.222, allocations: 29.72 MB / 1.046 GB, free: 139.2 MB / 0.5763 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01506/2.237, allocations: 11.26 MB / 1.057 GB, free: 130.5 MB / 0.5763 GB Notification: Performance of simCode: alias equations: time 0.00945/2.246, allocations: 3.777 MB / 1.061 GB, free: 127.1 MB / 0.5763 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001607/2.248, allocations: 0.515 MB / 1.062 GB, free: 126.6 MB / 0.5763 GB Notification: Performance of SimCode: time 1.112e-06/2.248, allocations: 0 / 1.062 GB, free: 126.6 MB / 0.5763 GB Notification: Performance of Templates: time 0.1423/2.39, allocations: 99.06 MB / 1.158 GB, free: 28.11 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/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