Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Electrical.QuasiStationary.Machines.Examples.TransformerTestbench.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.QuasiStationary.Machines.Examples.TransformerTestbench,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Electrical_QuasiStationary_Machines_Examples_TransformerTestbench",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.QuasiStationary.Machines.Examples.TransformerTestbench,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Electrical_QuasiStationary_Machines_Examples_TransformerTestbench",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0008891/0.0008896, allocations: 174 kB / 16.72 MB, free: 5.078 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.281/1.281, allocations: 205.4 MB / 222.9 MB, free: 9.023 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007048/0.0007047, allocations: 96.39 kB / 271.2 MB, free: 8.246 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003079/0.0003079, allocations: 8 kB / 327.6 MB, free: 15.78 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2103/0.2106, allocations: 47.57 MB / 375.2 MB, free: 45.42 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.QuasiStationary.Machines.Examples.TransformerTestbench): time 0.01829/0.2289, allocations: 25.69 MB / 400.9 MB, free: 22.93 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.01189/0.2408, allocations: 6.817 MB / 407.7 MB, free: 16.1 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004689/0.2456, allocations: 207.3 kB / 407.9 MB, free: 15.9 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.004371/0.2499, allocations: 1.417 MB / 409.3 MB, free: 14.47 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.009483/0.2595, allocations: 2.575 MB / 411.9 MB, free: 11.89 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.005279/0.2648, allocations: 1.399 MB / 413.3 MB, free: 10.51 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.02781/0.2926, allocations: 23.99 MB / 437.3 MB, free: 2.445 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.07773/0.3703, allocations: 42.89 MB / 480.2 MB, free: 7.363 MB / 362.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01214/0.3825, allocations: 7.033 MB / 487.2 MB, free: 316 kB / 362.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01266/0.3952, allocations: 8.207 MB / 495.4 MB, free: 8.066 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 0.004/0.3993, allocations: 1.172 MB / 496.6 MB, free: 6.895 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006626/0.4059, allocations: 1.402 MB / 498 MB, free: 5.492 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.005558/0.4115, allocations: 3.461 MB / 0.4897 GB, free: 2.02 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.3386/0.7501, allocations: 8.387 MB / 0.4979 GB, free: 46.79 MB / 378.8 MB Notification: Performance of NFConvertDAE.convert: time 0.03276/0.783, allocations: 33.71 MB / 0.5308 GB, free: 31.55 MB / 378.8 MB Notification: Performance of FrontEnd - DAE generated: time 8.015e-06/0.783, allocations: 4.219 kB / 0.5308 GB, free: 31.55 MB / 378.8 MB Notification: Performance of FrontEnd: time 2.254e-06/0.783, allocations: 2.625 kB / 0.5308 GB, free: 31.55 MB / 378.8 MB Notification: Performance of Transformations before backend: time 0.001391/0.7844, allocations: 0 / 0.5308 GB, free: 31.55 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: 5161 * Number of variables: 5161 Notification: Performance of Generate backend data structure: time 0.05557/0.84, allocations: 18.8 MB / 0.5492 GB, free: 22.47 MB / 378.8 MB Notification: Performance of prepare preOptimizeDAE: time 5.008e-05/0.84, allocations: 9.594 kB / 0.5492 GB, free: 22.47 MB / 378.8 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.01363/0.8537, allocations: 3.113 MB / 0.5522 GB, free: 21.78 MB / 378.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.06258/0.9163, allocations: 12.33 MB / 0.5643 GB, free: 10.34 MB / 378.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02326/0.9396, allocations: 10.57 MB / 0.5746 GB, free: 4.047 MB / 378.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001492/0.9412, allocations: 1.398 MB / 0.5759 GB, free: 3.254 MB / 378.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.009059/0.9503, allocations: 1.829 MB / 0.5777 GB, free: 2.035 MB / 378.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.08698/1.037, allocations: 30.75 MB / 0.6078 GB, free: 5.68 MB / 410.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0009625/1.038, allocations: 19.89 kB / 0.6078 GB, free: 5.66 MB / 410.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.007505/1.046, allocations: 0.7577 MB / 0.6085 GB, free: 4.918 MB / 410.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001168/1.047, allocations: 0.9958 MB / 0.6095 GB, free: 3.918 MB / 410.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.06205/1.109, allocations: 27.76 MB / 0.6366 GB, free: 8.133 MB / 442.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3654/1.474, allocations: 94.65 MB / 0.729 GB, free: 93.3 MB / 458.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03193/1.506, allocations: 53.35 MB / 0.7811 GB, free: 37.21 MB / 458.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.009552/1.516, allocations: 5.899 MB / 0.7869 GB, free: 31.3 MB / 458.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0296/1.546, allocations: 16.88 MB / 0.8034 GB, free: 14.14 MB / 458.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.91e-05/1.546, allocations: 77.95 kB / 0.8035 GB, free: 14.05 MB / 458.8 MB Notification: Performance of pre-optimization done (n=439): time 7.094e-06/1.546, allocations: 0 / 0.8035 GB, free: 14.05 MB / 458.8 MB Notification: Performance of matching and sorting (n=439): time 0.03192/1.578, allocations: 13.43 MB / 0.8166 GB, free: 0.582 MB / 458.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.671e-05/1.578, allocations: 120.5 kB / 0.8167 GB, free: 456 kB / 458.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01606/1.594, allocations: 7.434 MB / 0.8239 GB, free: 9.02 MB / 474.8 MB Notification: Performance of collectPreVariables (initialization): time 0.0009039/1.595, allocations: 97.7 kB / 0.824 GB, free: 8.918 MB / 474.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.006982/1.602, allocations: 8.516 MB / 0.8323 GB, free: 372 kB / 474.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.002422/1.604, allocations: 1.596 MB / 0.8339 GB, free: 14.78 MB / 490.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001602/1.606, allocations: 220 kB / 0.8341 GB, free: 14.57 MB / 490.8 MB Notification: Performance of setup shared object (initialization): time 0.001406/1.607, allocations: 0.7608 MB / 0.8349 GB, free: 13.8 MB / 490.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.008729/1.616, allocations: 4.737 MB / 0.8395 GB, free: 9.059 MB / 490.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.2215/1.838, allocations: 10.45 MB / 0.8497 GB, free: 159.3 MB / 490.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01926/1.857, allocations: 16.09 MB / 0.8654 GB, free: 150 MB / 490.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002589/1.857, allocations: 56.78 kB / 0.8655 GB, free: 150 MB / 490.8 MB Notification: Performance of matching and sorting (n=1411) (initialization): time 0.02648/1.884, allocations: 16.08 MB / 0.8812 GB, free: 143.8 MB / 490.8 MB Notification: Performance of prepare postOptimizeDAE: time 0.000189/1.884, allocations: 91.09 kB / 0.8812 GB, free: 143.8 MB / 490.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003426/1.884, allocations: 198.1 kB / 0.8814 GB, free: 143.8 MB / 490.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005357/1.89, allocations: 1.706 MB / 0.8831 GB, free: 143.5 MB / 490.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008287/1.898, allocations: 2.498 MB / 0.8855 GB, free: 143.2 MB / 490.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01323/1.911, allocations: 10.77 MB / 0.8961 GB, free: 135.9 MB / 490.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008669/1.92, allocations: 1.561 MB / 0.8976 GB, free: 134.6 MB / 490.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001794/1.922, allocations: 0.6005 MB / 0.8982 GB, free: 134 MB / 490.8 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 898 * 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 (1318): * Single equations (assignments): 1309 * 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 prepare postOptimizeDAE: time 0.01178/1.934, allocations: 7.399 MB / 0.9054 GB, free: 127.8 MB / 490.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0012/1.935, allocations: 0.6282 MB / 0.906 GB, free: 127.2 MB / 490.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01125/1.946, allocations: 8.232 MB / 0.914 GB, free: 120.3 MB / 490.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.007638/1.954, allocations: 6.615 MB / 0.9205 GB, free: 114.5 MB / 490.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.681e-05/1.954, allocations: 12 kB / 0.9205 GB, free: 114.5 MB / 490.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.206e-05/1.954, allocations: 19.92 kB / 0.9205 GB, free: 114.5 MB / 490.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03303/1.987, allocations: 21 MB / 0.941 GB, free: 93.51 MB / 490.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.355e-05/1.987, allocations: 0 / 0.941 GB, free: 93.51 MB / 490.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002918/1.99, allocations: 0.7606 MB / 0.9418 GB, free: 92.75 MB / 490.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004643/1.995, allocations: 1.46 MB / 0.9432 GB, free: 91.29 MB / 490.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005946/1.995, allocations: 87.98 kB / 0.9433 GB, free: 91.2 MB / 490.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01081/2.006, allocations: 10.42 MB / 0.9535 GB, free: 80.66 MB / 490.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.094e-06/2.006, allocations: 1.203 kB / 0.9535 GB, free: 80.66 MB / 490.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01442/2.02, allocations: 11.94 MB / 0.9651 GB, free: 68.67 MB / 490.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003198/2.024, allocations: 1.374 MB / 0.9665 GB, free: 67.27 MB / 490.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001186/2.025, allocations: 76 kB / 0.9665 GB, free: 67.19 MB / 490.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00295/2.028, allocations: 307.7 kB / 0.9668 GB, free: 66.89 MB / 490.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008181/2.029, allocations: 303.8 kB / 0.9671 GB, free: 66.59 MB / 490.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002576/2.029, allocations: 128 kB / 0.9672 GB, free: 66.47 MB / 490.8 MB Notification: Performance of sorting global known variables: time 0.006566/2.035, allocations: 4.867 MB / 0.972 GB, free: 61.62 MB / 490.8 MB Notification: Performance of sort global known variables: time 2e-07/2.035, allocations: 0 / 0.972 GB, free: 61.62 MB / 490.8 MB Notification: Performance of remove unused functions: time 0.01064/2.046, allocations: 4.192 MB / 0.9761 GB, free: 57.41 MB / 490.8 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * 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 (387): * Single equations (assignments): 378 * 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 Backend phase and start with SimCode phase: time 0.01411/2.06, allocations: 12.68 MB / 0.9885 GB, free: 44.69 MB / 490.8 MB Notification: Performance of simCode: created initialization part: time 0.01455/2.075, allocations: 11.06 MB / 0.9993 GB, free: 33.64 MB / 490.8 MB Notification: Performance of simCode: created event and clocks part: time 7.584e-06/2.075, allocations: 4 kB / 0.9993 GB, free: 33.64 MB / 490.8 MB Notification: Performance of simCode: created simulation system equations: time 0.005127/2.08, allocations: 4.011 MB / 1.003 GB, free: 29.61 MB / 490.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007781/2.088, allocations: 1.463 MB / 1.005 GB, free: 28.16 MB / 490.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3324/2.42, allocations: 87.27 MB / 1.09 GB, free: 132.9 MB / 490.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01985/2.44, allocations: 11.24 MB / 1.101 GB, free: 122 MB / 490.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01019/2.45, allocations: 6.174 MB / 1.107 GB, free: 115.8 MB / 490.8 MB Notification: Performance of SimCode: time 7.52e-07/2.45, allocations: 0 / 1.107 GB, free: 115.8 MB / 490.8 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 10.22/12.67, allocations: 351.7 MB / 1.45 GB, free: 92.46 MB / 490.8 MB (rm -f Modelica_3.2.3_cpp_Modelica.Electrical.QuasiStationary.Machines.Examples.TransformerTestbench.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Electrical.QuasiStationary.Machines.Examples.TransformerTestbench.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Electrical.QuasiStationary.Machines.Examples.TransformerTestbench.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Electrical.QuasiStationary.Machines.Examples.TransformerTestbench.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Electrical.QuasiStationary.Machines.Examples.TransformerTestbench_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Electrical_QuasiStationary_Machines_Examples_TransformerTestbench_fmu --startTime=0 --stopTime=0.1 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Electrical_QuasiStationary_Machines_Examples_TransformerTestbench.fmu > Modelica_3.2.3_cpp_Modelica.Electrical.QuasiStationary.Machines.Examples.TransformerTestbench.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Electrical.QuasiStationary.Machines.Examples.TransformerTestbench_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/QuasiStationary/Machines/Examples/TransformerTestbench/TransformerTestbench.csv","../files/Modelica_3.2.3_cpp_Modelica.Electrical.QuasiStationary.Machines.Examples.TransformerTestbench.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches