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: "" <> buildModelFMU(Modelica.Electrical.QuasiStatic.Machines.Examples.TransformerTestbench,fileNamePrefix="Modelica_trunk_cpp_Modelica_Electrical_QuasiStatic_Machines_Examples_TransformerTestbench",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.QuasiStatic.Machines.Examples.TransformerTestbench,fileNamePrefix="Modelica_trunk_cpp_Modelica_Electrical_QuasiStatic_Machines_Examples_TransformerTestbench",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009815/0.0009816, allocations: 199.4 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.277/1.277, allocations: 226.5 MB / 244.7 MB, free: 8.227 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007493/0.0007492, allocations: 100.5 kB / 296.7 MB, free: 6.934 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002497/0.0002498, allocations: 8 kB / 356.8 MB, free: 10.83 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2161/0.2163, allocations: 51.29 MB / 408.1 MB, free: 27.71 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.QuasiStatic.Machines.Examples.TransformerTestbench): time 0.01638/0.2328, allocations: 24.85 MB / 433 MB, free: 2.781 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.01235/0.2452, allocations: 6.594 MB / 439.6 MB, free: 12.18 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004773/0.25, allocations: 235.3 kB / 439.8 MB, free: 11.95 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0048/0.2548, allocations: 1.363 MB / 441.2 MB, free: 10.58 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.008616/0.2635, allocations: 2.115 MB / 443.3 MB, free: 8.461 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.005372/0.2688, allocations: 1.52 MB / 444.8 MB, free: 6.961 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.02652/0.2954, allocations: 23.26 MB / 468.1 MB, free: 15.63 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.06903/0.3644, allocations: 42.77 MB / 0.4989 GB, free: 4.695 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.3295/0.694, allocations: 6.742 MB / 0.5054 GB, free: 36.01 MB / 378.8 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01085/0.7049, allocations: 7.756 MB / 0.513 GB, free: 36.01 MB / 378.8 MB Notification: Performance of NFPackage.collectConstants: time 0.004393/0.7093, allocations: 1.145 MB / 0.5141 GB, free: 36.01 MB / 378.8 MB Notification: Performance of NFFlatten.collectFunctions: time 0.007203/0.7166, allocations: 1.404 MB / 0.5155 GB, free: 36.01 MB / 378.8 MB Notification: Performance of NFScalarize.scalarize: time 0.00472/0.7213, allocations: 3.201 MB / 0.5186 GB, free: 36.01 MB / 378.8 MB Notification: Performance of NFVerifyModel.verify: time 0.01092/0.7322, allocations: 8.044 MB / 0.5265 GB, free: 35.98 MB / 378.8 MB Notification: Performance of NFConvertDAE.convert: time 0.02346/0.7557, allocations: 33.27 MB / 0.559 GB, free: 17.7 MB / 378.8 MB Notification: Performance of FrontEnd - DAE generated: time 6.202e-06/0.7558, allocations: 3.094 kB / 0.559 GB, free: 17.7 MB / 378.8 MB Notification: Performance of FrontEnd: time 2.194e-06/0.7558, allocations: 0 / 0.559 GB, free: 17.7 MB / 378.8 MB Notification: Performance of Transformations before backend: time 0.0011/0.7569, allocations: 0 / 0.559 GB, free: 17.7 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.04346/0.8004, allocations: 18.08 MB / 0.5766 GB, free: 2.773 MB / 378.8 MB Notification: Performance of prepare preOptimizeDAE: time 3.856e-05/0.8004, allocations: 12.84 kB / 0.5766 GB, free: 2.762 MB / 378.8 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.009502/0.8099, allocations: 2.956 MB / 0.5795 GB, free: 0.9688 MB / 378.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04162/0.8516, allocations: 8.391 MB / 0.5877 GB, free: 9.098 MB / 394.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02189/0.8735, allocations: 11.3 MB / 0.5988 GB, free: 1.711 MB / 394.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001327/0.8749, allocations: 1.335 MB / 0.6001 GB, free: 392 kB / 394.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.006588/0.8815, allocations: 1.748 MB / 0.6018 GB, free: 14.64 MB / 410.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.06804/0.9495, allocations: 28.64 MB / 0.6297 GB, free: 1.965 MB / 426.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005939/0.9502, allocations: 15.89 kB / 0.6298 GB, free: 1.949 MB / 426.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.005348/0.9555, allocations: 0.7255 MB / 0.6305 GB, free: 1.234 MB / 426.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0007681/0.9563, allocations: 0.8649 MB / 0.6313 GB, free: 376 kB / 426.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04882/1.005, allocations: 24.68 MB / 0.6554 GB, free: 7.668 MB / 458.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3128/1.318, allocations: 88.64 MB / 0.742 GB, free: 92.73 MB / 474.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02087/1.339, allocations: 35.13 MB / 0.7763 GB, free: 59.7 MB / 474.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.007375/1.346, allocations: 5.35 MB / 0.7815 GB, free: 56.39 MB / 474.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005587/1.347, allocations: 288.8 kB / 0.7818 GB, free: 56.08 MB / 474.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.957e-05/1.347, allocations: 99.06 kB / 0.7819 GB, free: 55.97 MB / 474.8 MB Notification: Performance of pre-optimization done (n=589): time 7.724e-06/1.347, allocations: 0 / 0.7819 GB, free: 55.97 MB / 474.8 MB Notification: Performance of matching and sorting (n=589): time 0.02816/1.375, allocations: 14.8 MB / 0.7963 GB, free: 41.06 MB / 474.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.908e-05/1.375, allocations: 137.7 kB / 0.7965 GB, free: 40.91 MB / 474.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007695/1.383, allocations: 6.366 MB / 0.8027 GB, free: 34.6 MB / 474.8 MB Notification: Performance of collectPreVariables (initialization): time 0.0008011/1.384, allocations: 117.7 kB / 0.8028 GB, free: 34.48 MB / 474.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.002963/1.387, allocations: 7.608 MB / 0.8102 GB, free: 26.83 MB / 474.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.001706/1.388, allocations: 2.051 MB / 0.8122 GB, free: 24.79 MB / 474.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000622/1.389, allocations: 204 kB / 0.8124 GB, free: 24.59 MB / 474.8 MB Notification: Performance of setup shared object (initialization): time 0.000512/1.39, allocations: 0.7447 MB / 0.8131 GB, free: 23.84 MB / 474.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006931/1.397, allocations: 4.771 MB / 0.8178 GB, free: 19.07 MB / 474.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.009359/1.406, allocations: 9.508 MB / 0.8271 GB, free: 7.312 MB / 474.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0173/1.423, allocations: 15.4 MB / 0.8421 GB, free: 5.602 MB / 490.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001339/1.423, allocations: 44 kB / 0.8422 GB, free: 5.559 MB / 490.8 MB Notification: Performance of matching and sorting (n=1342) (initialization): time 0.02724/1.451, allocations: 15.46 MB / 0.8573 GB, free: 6.016 MB / 0.4949 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001043/1.451, allocations: 72 kB / 0.8573 GB, free: 5.945 MB / 0.4949 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001998/1.451, allocations: 160 kB / 0.8575 GB, free: 5.789 MB / 0.4949 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.005372/1.456, allocations: 1.666 MB / 0.8591 GB, free: 4.125 MB / 0.4949 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007937/1.464, allocations: 2.347 MB / 0.8614 GB, free: 1.773 MB / 0.4949 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2106/1.675, allocations: 10.84 MB / 0.872 GB, free: 153.6 MB / 0.4949 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007472/1.682, allocations: 1.355 MB / 0.8733 GB, free: 153.3 MB / 0.4949 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001823/1.684, allocations: 0.5306 MB / 0.8738 GB, free: 153.3 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.01038/1.695, allocations: 7.147 MB / 0.8808 GB, free: 150.9 MB / 0.4949 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00105/1.696, allocations: 0.6128 MB / 0.8814 GB, free: 150.7 MB / 0.4949 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01361/1.709, allocations: 10.25 MB / 0.8914 GB, free: 146.5 MB / 0.4949 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01012/1.72, allocations: 7.896 MB / 0.8991 GB, free: 143.4 MB / 0.4949 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.02e-05/1.72, allocations: 11.75 kB / 0.8991 GB, free: 143.4 MB / 0.4949 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.322e-05/1.72, allocations: 36.73 kB / 0.8992 GB, free: 143.4 MB / 0.4949 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03804/1.758, allocations: 26.45 MB / 0.925 GB, free: 126.3 MB / 0.4949 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.009e-05/1.758, allocations: 8 kB / 0.925 GB, free: 126.3 MB / 0.4949 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003635/1.761, allocations: 1.002 MB / 0.926 GB, free: 125.3 MB / 0.4949 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004725/1.766, allocations: 1.467 MB / 0.9274 GB, free: 123.9 MB / 0.4949 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007113/1.767, allocations: 124 kB / 0.9275 GB, free: 123.8 MB / 0.4949 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0111/1.778, allocations: 10.41 MB / 0.9377 GB, free: 113.2 MB / 0.4949 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.834e-06/1.778, allocations: 15.94 kB / 0.9377 GB, free: 113.2 MB / 0.4949 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01619/1.794, allocations: 14.32 MB / 0.9517 GB, free: 98.55 MB / 0.4949 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002794/1.797, allocations: 1.458 MB / 0.9531 GB, free: 97.07 MB / 0.4949 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001043/1.798, allocations: 116 kB / 0.9532 GB, free: 96.95 MB / 0.4949 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00287/1.801, allocations: 319.7 kB / 0.9535 GB, free: 96.64 MB / 0.4949 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009352/1.802, allocations: 408.4 kB / 0.9539 GB, free: 96.24 MB / 0.4949 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003081/1.802, allocations: 168 kB / 0.9541 GB, free: 96.07 MB / 0.4949 GB Notification: Performance of sorting global known variables: time 0.005324/1.808, allocations: 4.258 MB / 0.9583 GB, free: 91.85 MB / 0.4949 GB Notification: Performance of sort global known variables: time 2.51e-07/1.808, allocations: 0 / 0.9583 GB, free: 91.85 MB / 0.4949 GB Notification: Performance of remove unused functions: time 0.009569/1.817, allocations: 4.034 MB / 0.9622 GB, free: 87.8 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.0165/1.834, allocations: 15.12 MB / 0.977 GB, free: 72.33 MB / 0.4949 GB Notification: Performance of simCode: created initialization part: time 0.01414/1.848, allocations: 11.44 MB / 0.9881 GB, free: 60.85 MB / 0.4949 GB Notification: Performance of simCode: created event and clocks part: time 1.061e-05/1.848, allocations: 1.203 kB / 0.9881 GB, free: 60.85 MB / 0.4949 GB Notification: Performance of simCode: created simulation system equations: time 0.006079/1.854, allocations: 4.716 MB / 0.9927 GB, free: 56.11 MB / 0.4949 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01259/1.867, allocations: 1.48 MB / 0.9942 GB, free: 54.66 MB / 0.4949 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3095/2.176, allocations: 83.73 MB / 1.076 GB, free: 181.5 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01646/2.193, allocations: 10.91 MB / 1.087 GB, free: 177.7 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.009906/2.203, allocations: 5.938 MB / 1.092 GB, free: 172.5 MB / 0.5105 GB Notification: Performance of SimCode: time 1.062e-06/2.203, allocations: 2 kB / 1.092 GB, free: 172.5 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 9.853/12.06, allocations: 340.5 MB / 1.425 GB, free: 128.1 MB / 0.5105 GB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_cpp_Modelica.Electrical.QuasiStatic.Machines.Examples.TransformerTestbench_res.mat --tempDir=temp_Modelica_trunk_cpp_Modelica_Electrical_QuasiStatic_Machines_Examples_TransformerTestbench_fmu --startTime=0 --stopTime=0.1 --timeout=50 --tolerance=1e-06 Modelica_trunk_cpp_Modelica_Electrical_QuasiStatic_Machines_Examples_TransformerTestbench.fmu > 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/jenkins1/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