Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_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_cpp_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_cpp_Modelica.Electrical.QuasiStatic.Machines.Examples.TransformerTestbench") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001392/0.001392, allocations: 197 kB / 17.38 MB, free: 4.43 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.261/1.261, allocations: 226.6 MB / 244.7 MB, free: 8.172 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007927/0.0007927, allocations: 102.2 kB / 296.8 MB, free: 6.879 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002068/0.0002068, allocations: 8 kB / 356.8 MB, free: 10.89 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2081/0.2084, allocations: 51.29 MB / 408 MB, free: 27.71 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.QuasiStatic.Machines.Examples.TransformerTestbench): time 0.0162/0.2246, allocations: 24.85 MB / 432.9 MB, free: 2.77 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.01268/0.2373, allocations: 6.592 MB / 439.5 MB, free: 12.17 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005047/0.2424, allocations: 231.3 kB / 439.7 MB, free: 11.95 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.005691/0.2482, allocations: 1.374 MB / 441.1 MB, free: 10.56 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.008773/0.257, allocations: 2.119 MB / 443.2 MB, free: 8.438 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.00577/0.2628, allocations: 1.516 MB / 444.7 MB, free: 6.938 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.02835/0.2911, allocations: 23.25 MB / 468 MB, free: 15.61 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.07381/0.365, allocations: 42.77 MB / 0.4988 GB, free: 4.676 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.3717/0.7367, allocations: 6.732 MB / 0.5054 GB, free: 36.07 MB / 378.8 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01214/0.7489, allocations: 7.75 MB / 0.5129 GB, free: 36.07 MB / 378.8 MB Notification: Performance of NFPackage.collectConstants: time 0.005004/0.754, allocations: 1.149 MB / 0.514 GB, free: 36.07 MB / 378.8 MB Notification: Performance of NFFlatten.collectFunctions: time 0.007813/0.7618, allocations: 1.399 MB / 0.5154 GB, free: 36.07 MB / 378.8 MB Notification: Performance of NFScalarize.scalarize: time 0.005146/0.767, allocations: 3.203 MB / 0.5185 GB, free: 36.07 MB / 378.8 MB Notification: Performance of NFVerifyModel.verify: time 0.01132/0.7783, allocations: 8.052 MB / 0.5264 GB, free: 36.04 MB / 378.8 MB Notification: Performance of NFConvertDAE.convert: time 0.02447/0.8028, allocations: 33.26 MB / 0.5589 GB, free: 17.75 MB / 378.8 MB Notification: Performance of FrontEnd - DAE generated: time 6.202e-06/0.8029, allocations: 3.312 kB / 0.5589 GB, free: 17.75 MB / 378.8 MB Notification: Performance of FrontEnd: time 2.154e-06/0.8029, allocations: 0 / 0.5589 GB, free: 17.75 MB / 378.8 MB Notification: Performance of Transformations before backend: time 0.001028/0.8039, allocations: 0 / 0.5589 GB, free: 17.75 MB / 378.8 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.04375/0.8477, allocations: 18.08 MB / 0.5765 GB, free: 2.73 MB / 378.8 MB Notification: Performance of prepare preOptimizeDAE: time 4.411e-05/0.8477, allocations: 17.39 kB / 0.5766 GB, free: 2.719 MB / 378.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04074/0.8885, allocations: 8.388 MB / 0.5847 GB, free: 10.86 MB / 394.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02103/0.9095, allocations: 11.3 MB / 0.5958 GB, free: 4.223 MB / 394.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001435/0.911, allocations: 1.335 MB / 0.5971 GB, free: 3.281 MB / 394.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.006152/0.9172, allocations: 1.749 MB / 0.5988 GB, free: 1.543 MB / 394.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.07081/0.988, allocations: 28.62 MB / 0.6267 GB, free: 4.883 MB / 426.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0008574/0.9889, allocations: 18.89 kB / 0.6268 GB, free: 4.867 MB / 426.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.006216/0.9952, allocations: 0.7255 MB / 0.6275 GB, free: 4.152 MB / 426.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0009976/0.9962, allocations: 0.8648 MB / 0.6283 GB, free: 3.285 MB / 426.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.05968/1.056, allocations: 24.68 MB / 0.6524 GB, free: 10.59 MB / 458.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4448/1.501, allocations: 88.67 MB / 0.739 GB, free: 93.18 MB / 474.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02223/1.523, allocations: 35.13 MB / 0.7733 GB, free: 60.15 MB / 474.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.008659/1.532, allocations: 5.353 MB / 0.7785 GB, free: 57.48 MB / 474.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0006446/1.532, allocations: 287.3 kB / 0.7788 GB, free: 57.25 MB / 474.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.704e-05/1.532, allocations: 94.44 kB / 0.7789 GB, free: 57.16 MB / 474.8 MB Notification: Performance of pre-optimization done (n=589): time 9.288e-06/1.533, allocations: 2.5 kB / 0.7789 GB, free: 57.16 MB / 474.8 MB Notification: Performance of matching and sorting (n=589): time 0.03143/1.564, allocations: 14.8 MB / 0.7934 GB, free: 43.74 MB / 474.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.438e-05/1.564, allocations: 141.6 kB / 0.7935 GB, free: 43.58 MB / 474.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01033/1.574, allocations: 6.367 MB / 0.7997 GB, free: 37.27 MB / 474.8 MB Notification: Performance of collectPreVariables (initialization): time 0.0008685/1.575, allocations: 117.7 kB / 0.7998 GB, free: 37.15 MB / 474.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.003435/1.579, allocations: 7.595 MB / 0.8072 GB, free: 29.51 MB / 474.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.002119/1.581, allocations: 2.056 MB / 0.8092 GB, free: 27.47 MB / 474.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001021/1.582, allocations: 208 kB / 0.8094 GB, free: 27.27 MB / 474.8 MB Notification: Performance of setup shared object (initialization): time 0.0006793/1.583, allocations: 0.7401 MB / 0.8102 GB, free: 26.52 MB / 474.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00691/1.59, allocations: 4.771 MB / 0.8148 GB, free: 21.75 MB / 474.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.009298/1.599, allocations: 9.516 MB / 0.8241 GB, free: 9.984 MB / 474.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01878/1.618, allocations: 15.4 MB / 0.8392 GB, free: 8.273 MB / 490.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001672/1.618, allocations: 44 kB / 0.8392 GB, free: 8.23 MB / 490.8 MB Notification: Performance of matching and sorting (n=1342) (initialization): time 0.02888/1.647, allocations: 15.45 MB / 0.8543 GB, free: 8.691 MB / 0.4949 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001871/1.647, allocations: 81.72 kB / 0.8544 GB, free: 8.613 MB / 0.4949 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002583/1.647, allocations: 156 kB / 0.8545 GB, free: 8.461 MB / 0.4949 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.005827/1.653, allocations: 1.661 MB / 0.8561 GB, free: 6.801 MB / 0.4949 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00842/1.662, allocations: 2.351 MB / 0.8584 GB, free: 4.445 MB / 0.4949 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2067/1.868, allocations: 10.84 MB / 0.869 GB, free: 155 MB / 0.4949 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006874/1.875, allocations: 1.343 MB / 0.8703 GB, free: 154.7 MB / 0.4949 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001684/1.877, allocations: 0.5304 MB / 0.8708 GB, free: 154.7 MB / 0.4949 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 (1249): * Single equations (assignments): 1240 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 8 * 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,75.0%) 80} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.01075/1.888, allocations: 7.153 MB / 0.8778 GB, free: 153.1 MB / 0.4949 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001141/1.889, allocations: 0.6131 MB / 0.8784 GB, free: 152.9 MB / 0.4949 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01459/1.903, allocations: 10.25 MB / 0.8884 GB, free: 148.7 MB / 0.4949 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01023/1.914, allocations: 7.896 MB / 0.8962 GB, free: 145.7 MB / 0.4949 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.008e-05/1.914, allocations: 11.22 kB / 0.8962 GB, free: 145.7 MB / 0.4949 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.427e-05/1.914, allocations: 30.67 kB / 0.8962 GB, free: 145.7 MB / 0.4949 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03758/1.951, allocations: 26.45 MB / 0.922 GB, free: 128.8 MB / 0.4949 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.006e-05/1.951, allocations: 8 kB / 0.922 GB, free: 128.8 MB / 0.4949 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003566/1.955, allocations: 1.006 MB / 0.923 GB, free: 127.8 MB / 0.4949 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004673/1.96, allocations: 1.469 MB / 0.9244 GB, free: 126.4 MB / 0.4949 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004508/1.96, allocations: 124 kB / 0.9246 GB, free: 126.3 MB / 0.4949 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01135/1.971, allocations: 10.41 MB / 0.9347 GB, free: 115.8 MB / 0.4949 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.963e-06/1.972, allocations: 17.58 kB / 0.9347 GB, free: 115.7 MB / 0.4949 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01683/1.988, allocations: 14.32 MB / 0.9487 GB, free: 101.1 MB / 0.4949 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0027/1.991, allocations: 1.456 MB / 0.9502 GB, free: 99.59 MB / 0.4949 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007573/1.992, allocations: 108 kB / 0.9503 GB, free: 99.48 MB / 0.4949 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002492/1.994, allocations: 327.7 kB / 0.9506 GB, free: 99.16 MB / 0.4949 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00066/1.995, allocations: 400.4 kB / 0.951 GB, free: 98.77 MB / 0.4949 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002993/1.995, allocations: 172 kB / 0.9511 GB, free: 98.6 MB / 0.4949 GB Notification: Performance of sorting global known variables: time 0.005513/2.001, allocations: 4.262 MB / 0.9553 GB, free: 94.37 MB / 0.4949 GB Notification: Performance of sort global known variables: time 2.71e-07/2.001, allocations: 0 / 0.9553 GB, free: 94.37 MB / 0.4949 GB Notification: Performance of remove unused functions: time 0.009956/2.011, allocations: 4.034 MB / 0.9592 GB, free: 90.32 MB / 0.4949 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 (534): * Single equations (assignments): 525 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 8 * 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%) 80} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0009903/2.012, allocations: 325.4 kB / 0.9595 GB, free: 90 MB / 0.4949 GB Notification: Performance of simCode: created initialization part: time 0.0152/2.027, allocations: 11.45 MB / 0.9707 GB, free: 78.51 MB / 0.4949 GB Notification: Performance of simCode: created event and clocks part: time 1.145e-05/2.027, allocations: 4 kB / 0.9707 GB, free: 78.51 MB / 0.4949 GB Notification: Performance of simCode: created simulation system equations: time 0.006343/2.033, allocations: 4.715 MB / 0.9753 GB, free: 73.78 MB / 0.4949 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01243/2.046, allocations: 1.472 MB / 0.9768 GB, free: 72.34 MB / 0.4949 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05045/2.096, allocations: 34.73 MB / 1.011 GB, free: 37.43 MB / 0.4949 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01531/2.112, allocations: 10.91 MB / 1.021 GB, free: 26.48 MB / 0.4949 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002735/2.115, allocations: 0.5775 MB / 1.022 GB, free: 25.9 MB / 0.4949 GB Notification: Performance of SimCode: time 1.062e-06/2.115, allocations: 0 / 1.022 GB, free: 25.9 MB / 0.4949 GB Notification: Performance of Templates: time 0.741/2.856, allocations: 279.3 MB / 1.295 GB, free: 152.6 MB / 0.5262 GB make -j1 -f Modelica_trunk_cpp_Modelica.Electrical.QuasiStatic.Machines.Examples.TransformerTestbench.makefile (rm -f Modelica_trunk_cpp_Modelica.Electrical.QuasiStatic.Machines.Examples.TransformerTestbench.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Electrical.QuasiStatic.Machines.Examples.TransformerTestbench.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Electrical.QuasiStatic.Machines.Examples.TransformerTestbench.pipe >> ../files/Modelica_trunk_cpp_Modelica.Electrical.QuasiStatic.Machines.Examples.TransformerTestbench.sim & ./Modelica_trunk_cpp_Modelica.Electrical.QuasiStatic.Machines.Examples.TransformerTestbench --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Electrical.QuasiStatic.Machines.Examples.TransformerTestbench.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_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_cpp_Modelica.Electrical.QuasiStatic.Machines.Examples.TransformerTestbench.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches