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: "" <> buildModelFMU(Modelica.Electrical.QuasiStatic.Machines.Examples.TransformerTestbench,fileNamePrefix="Modelica_trunk_Modelica_Electrical_QuasiStatic_Machines_Examples_TransformerTestbench",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.QuasiStatic.Machines.Examples.TransformerTestbench,fileNamePrefix="Modelica_trunk_Modelica_Electrical_QuasiStatic_Machines_Examples_TransformerTestbench",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001683/0.001691, allocations: 122.2 kB / 17.79 MB, free: 5.273 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002007/0.002007, allocations: 202 kB / 18.74 MB, free: 4.332 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.437/1.437, allocations: 227.4 MB / 247 MB, free: 10.45 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001787/0.001787, allocations: 59.91 kB / 358.3 MB, free: 13.36 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2908/0.2926, allocations: 50.56 MB / 408.8 MB, free: 1.484 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.QuasiStatic.Machines.Examples.TransformerTestbench): time 0.03156/0.3242, allocations: 28.61 MB / 437.4 MB, free: 4.746 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01684/0.3411, allocations: 7.203 MB / 444.6 MB, free: 13.52 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.007248/0.3484, allocations: 259.2 kB / 444.9 MB, free: 13.27 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.02917/0.3776, allocations: 13.1 MB / 458 MB, free: 144 kB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01143/0.3891, allocations: 2.531 MB / 460.5 MB, free: 13.6 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0069/0.396, allocations: 2.039 MB / 462.6 MB, free: 11.57 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.02447/0.4205, allocations: 18.28 MB / 480.9 MB, free: 9.223 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.07415/0.4947, allocations: 44.44 MB / 0.513 GB, free: 12.56 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01761/0.5123, allocations: 9.938 MB / 0.5227 GB, free: 2.609 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.02182/0.5342, allocations: 11.06 MB / 0.5335 GB, free: 7.512 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 0.009002/0.5433, allocations: 2.918 MB / 0.5363 GB, free: 4.594 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01265/0.556, allocations: 3.199 MB / 0.5395 GB, free: 1.395 MB / 462.1 MB Notification: Performance of NFScalarize.scalarize: time 0.4461/1.002, allocations: 5.471 MB / 0.5448 GB, free: 59.72 MB / 462.1 MB Notification: Performance of NFVerifyModel.verify: time 0.02224/1.024, allocations: 10.83 MB / 0.5554 GB, free: 58.86 MB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 0.03784/1.062, allocations: 39.1 MB / 0.5936 GB, free: 38.25 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.502e-06/1.062, allocations: 3.844 kB / 0.5936 GB, free: 38.25 MB / 462.1 MB Notification: Performance of FrontEnd: time 1.703e-06/1.062, allocations: 0.8125 kB / 0.5936 GB, free: 38.25 MB / 462.1 MB Notification: Performance of Transformations before backend: time 0.001103/1.063, allocations: 0 / 0.5936 GB, free: 38.25 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.06583/1.129, allocations: 22.32 MB / 0.6154 GB, free: 24.31 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.644e-05/1.129, allocations: 9.406 kB / 0.6154 GB, free: 24.31 MB / 462.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.01327/1.143, allocations: 2.955 MB / 0.6182 GB, free: 21.76 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0433/1.186, allocations: 8.239 MB / 0.6263 GB, free: 13.59 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02625/1.212, allocations: 11.68 MB / 0.6377 GB, free: 2.332 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001388/1.214, allocations: 1.343 MB / 0.639 GB, free: 0.9961 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.007553/1.221, allocations: 1.755 MB / 0.6407 GB, free: 15.25 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.08576/1.307, allocations: 28.78 MB / 0.6688 GB, free: 2.438 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0009564/1.308, allocations: 19.91 kB / 0.6688 GB, free: 2.418 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.006686/1.315, allocations: 0.7246 MB / 0.6696 GB, free: 1.703 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001172/1.316, allocations: 0.8481 MB / 0.6704 GB, free: 0.8555 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.06053/1.377, allocations: 24.84 MB / 0.6946 GB, free: 7.996 MB / 0.5138 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4928/1.869, allocations: 87.52 MB / 0.7801 GB, free: 105.6 MB / 0.5607 GB Notification: Performance of preOpt comSubExp (simulation): time 0.02652/1.896, allocations: 35.16 MB / 0.8144 GB, free: 78.14 MB / 0.5607 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.008442/1.905, allocations: 5.449 MB / 0.8198 GB, free: 78.04 MB / 0.5607 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0007518/1.905, allocations: 331.6 kB / 0.8201 GB, free: 77.84 MB / 0.5607 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.233e-05/1.905, allocations: 96.39 kB / 0.8202 GB, free: 77.79 MB / 0.5607 GB Notification: Performance of pre-optimization done (n=577): time 7.093e-06/1.905, allocations: 0 / 0.8202 GB, free: 77.79 MB / 0.5607 GB Notification: Performance of matching and sorting (n=577): time 0.03478/1.94, allocations: 14.8 MB / 0.8346 GB, free: 76.96 MB / 0.5607 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.448e-05/1.94, allocations: 141.2 kB / 0.8348 GB, free: 76.86 MB / 0.5607 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01109/1.951, allocations: 6.432 MB / 0.841 GB, free: 75.34 MB / 0.5607 GB Notification: Performance of collectPreVariables (initialization): time 0.001495/1.953, allocations: 118.6 kB / 0.8412 GB, free: 75.31 MB / 0.5607 GB Notification: Performance of collectInitialEqns (initialization): time 0.006554/1.96, allocations: 7.898 MB / 0.8489 GB, free: 69.77 MB / 0.5607 GB Notification: Performance of collectInitialBindings (initialization): time 0.002884/1.962, allocations: 2.108 MB / 0.8509 GB, free: 68.25 MB / 0.5607 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003855/1.966, allocations: 2.116 MB / 0.853 GB, free: 67.89 MB / 0.5607 GB Notification: Performance of setup shared object (initialization): time 5.427e-05/1.966, allocations: 305.1 kB / 0.8533 GB, free: 67.59 MB / 0.5607 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006711/1.973, allocations: 4.75 MB / 0.8579 GB, free: 65.83 MB / 0.5607 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01024/1.983, allocations: 9.471 MB / 0.8672 GB, free: 54.68 MB / 0.5607 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01696/2, allocations: 15.33 MB / 0.8821 GB, free: 37.7 MB / 0.5607 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001449/2.001, allocations: 48 kB / 0.8822 GB, free: 37.65 MB / 0.5607 GB Notification: Performance of matching and sorting (n=1330) (initialization): time 0.02801/2.029, allocations: 15.44 MB / 0.8973 GB, free: 23.12 MB / 0.5607 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001839/2.029, allocations: 72.06 kB / 0.8973 GB, free: 23.05 MB / 0.5607 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003099/2.029, allocations: 164 kB / 0.8975 GB, free: 22.89 MB / 0.5607 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00535/2.035, allocations: 1.657 MB / 0.8991 GB, free: 21.22 MB / 0.5607 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008656/2.043, allocations: 2.364 MB / 0.9014 GB, free: 19.04 MB / 0.5607 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01406/2.057, allocations: 11.63 MB / 0.9128 GB, free: 7.371 MB / 0.5607 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009303/2.067, allocations: 1.374 MB / 0.9141 GB, free: 5.988 MB / 0.5607 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002211/2.069, allocations: 0.5312 MB / 0.9146 GB, free: 5.457 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.01283/2.082, allocations: 7.15 MB / 0.9216 GB, free: 14.47 MB / 0.5763 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001562/2.083, allocations: 0.6442 MB / 0.9222 GB, free: 13.82 MB / 0.5763 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0182/2.102, allocations: 10.1 MB / 0.9321 GB, free: 3.656 MB / 0.5763 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01485/2.116, allocations: 7.802 MB / 0.9397 GB, free: 11.81 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.395e-05/2.117, allocations: 12 kB / 0.9397 GB, free: 11.8 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001182/2.117, allocations: 31.88 kB / 0.9398 GB, free: 11.77 MB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.06245/2.179, allocations: 25.74 MB / 0.9649 GB, free: 1.945 MB / 0.6076 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.369e-05/2.179, allocations: 12.92 kB / 0.9649 GB, free: 1.934 MB / 0.6076 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004605/2.184, allocations: 1.016 MB / 0.9659 GB, free: 0.9688 MB / 0.6076 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.005581/2.189, allocations: 1.465 MB / 0.9673 GB, free: 15.5 MB / 0.6232 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001139/2.191, allocations: 136 kB / 0.9675 GB, free: 15.36 MB / 0.6232 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01659/2.207, allocations: 11.15 MB / 0.9784 GB, free: 4.102 MB / 0.6232 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.016e-05/2.207, allocations: 11.47 kB / 0.9784 GB, free: 4.094 MB / 0.6232 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2794/2.487, allocations: 14.17 MB / 0.9922 GB, free: 227.4 MB / 0.6232 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003587/2.49, allocations: 1.481 MB / 0.9937 GB, free: 226.9 MB / 0.6232 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001096/2.492, allocations: 107 kB / 0.9938 GB, free: 226.9 MB / 0.6232 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002805/2.494, allocations: 321.5 kB / 0.9941 GB, free: 226.9 MB / 0.6232 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009504/2.495, allocations: 404.2 kB / 0.9945 GB, free: 226.9 MB / 0.6232 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003966/2.496, allocations: 174.3 kB / 0.9946 GB, free: 226.9 MB / 0.6232 GB Notification: Performance of sorting global known variables: time 0.006898/2.503, allocations: 4.306 MB / 0.9988 GB, free: 226 MB / 0.6232 GB Notification: Performance of sort global known variables: time 4.51e-07/2.503, allocations: 0 / 0.9988 GB, free: 226 MB / 0.6232 GB Notification: Performance of remove unused functions: time 0.01146/2.514, allocations: 4.095 MB / 1.003 GB, free: 224.7 MB / 0.6232 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.0176/2.532, allocations: 14.97 MB / 1.017 GB, free: 217.7 MB / 0.6232 GB Notification: Performance of simCode: created initialization part: time 0.01579/2.548, allocations: 11.39 MB / 1.029 GB, free: 213.5 MB / 0.6232 GB Notification: Performance of simCode: created event and clocks part: time 1.975e-05/2.548, allocations: 11.19 kB / 1.029 GB, free: 213.5 MB / 0.6232 GB Notification: Performance of simCode: created simulation system equations: time 0.006906/2.555, allocations: 4.662 MB / 1.033 GB, free: 211.6 MB / 0.6232 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008151/2.563, allocations: 1.564 MB / 1.035 GB, free: 211 MB / 0.6232 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1339/2.697, allocations: 94.52 MB / 1.127 GB, free: 116.6 MB / 0.6232 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01418/2.711, allocations: 11.25 MB / 1.138 GB, free: 105.3 MB / 0.6232 GB Notification: Performance of simCode: alias equations: time 0.008009/2.719, allocations: 3.778 MB / 1.142 GB, free: 101.6 MB / 0.6232 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.007906/2.727, allocations: 5.947 MB / 1.147 GB, free: 95.61 MB / 0.6232 GB Notification: Performance of SimCode: time 8.81e-07/2.727, allocations: 0 / 1.147 GB, free: 95.61 MB / 0.6232 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5262/3.253, allocations: 205.1 MB / 1.348 GB, free: 137.3 MB / 0.6232 GB Notification: Performance of buildModelFMU: Generate platform static: time 27.71/30.96, allocations: 11.73 kB / 1.348 GB, free: 137.3 MB / 0.6232 GB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.QuasiStatic.Machines.Examples.TransformerTestbench_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_QuasiStatic_Machines_Examples_TransformerTestbench_fmu --startTime=0 --stopTime=0.1 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_QuasiStatic_Machines_Examples_TransformerTestbench.fmu > 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.1.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