Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.QuasiStationary.Machines.Examples.TransformerTestbench.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) 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 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.QuasiStationary.Machines.Examples.TransformerTestbench,fileNamePrefix="Modelica_3_2_3_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_Modelica_Electrical_QuasiStationary_Machines_Examples_TransformerTestbench",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001293/0.001294, allocations: 102.9 kB / 17.16 MB, free: 6.316 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001458/0.001458, allocations: 190 kB / 18.07 MB, free: 5.414 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.157/1.157, allocations: 205.1 MB / 223.9 MB, free: 12.47 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001126/0.001126, allocations: 55.86 kB / 280.1 MB, free: 3.473 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07514/0.07628, allocations: 46.61 MB / 326.7 MB, free: 4.797 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.QuasiStationary.Machines.Examples.TransformerTestbench): time 0.02775/0.1041, allocations: 28.99 MB / 355.7 MB, free: 7.664 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01734/0.1214, allocations: 7.359 MB / 363 MB, free: 288 kB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004626/0.1261, allocations: 207.3 kB / 363.2 MB, free: 80 kB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.02256/0.1487, allocations: 12.5 MB / 375.7 MB, free: 3.531 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008253/0.1569, allocations: 2.749 MB / 378.5 MB, free: 0.7695 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.1277/0.2847, allocations: 1.753 MB / 380.2 MB, free: 10.05 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.01642/0.3011, allocations: 18.48 MB / 398.7 MB, free: 9.809 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.04694/0.3481, allocations: 37.37 MB / 436.1 MB, free: 13.78 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01075/0.3588, allocations: 9.013 MB / 445.1 MB, free: 5.906 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0134/0.3722, allocations: 11.12 MB / 456.2 MB, free: 11.36 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.003591/0.3758, allocations: 2.098 MB / 458.3 MB, free: 9.258 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005788/0.3816, allocations: 2.341 MB / 460.7 MB, free: 6.953 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003767/0.3854, allocations: 4.861 MB / 465.5 MB, free: 2.207 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01099/0.3964, allocations: 10.29 MB / 475.8 MB, free: 8.004 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02712/0.4235, allocations: 38.89 MB / 0.5026 GB, free: 1.902 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.929e-06/0.4236, allocations: 0 / 0.5026 GB, free: 1.902 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.373e-06/0.4236, allocations: 4 kB / 0.5027 GB, free: 1.898 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.0006263/0.4242, allocations: 0 / 0.5027 GB, free: 1.898 MB / 414.1 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.05112/0.4753, allocations: 22.98 MB / 0.5251 GB, free: 10.97 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.778e-05/0.4754, allocations: 12.03 kB / 0.5251 GB, free: 10.96 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.007057/0.4825, allocations: 3.107 MB / 0.5281 GB, free: 7.855 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.3015/0.784, allocations: 12.28 MB / 0.5401 GB, free: 128.2 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01799/0.802, allocations: 10.55 MB / 0.5504 GB, free: 123.9 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001182/0.8032, allocations: 1.395 MB / 0.5518 GB, free: 123.2 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004865/0.8081, allocations: 1.831 MB / 0.5536 GB, free: 122.6 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04425/0.8523, allocations: 30.9 MB / 0.5838 GB, free: 104.9 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002676/0.8526, allocations: 15.91 kB / 0.5838 GB, free: 104.9 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001582/0.8542, allocations: 0.763 MB / 0.5845 GB, free: 104.1 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005138/0.8547, allocations: 0.988 MB / 0.5855 GB, free: 103.1 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03329/0.888, allocations: 27.91 MB / 0.6127 GB, free: 75.19 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.09347/0.9815, allocations: 94.4 MB / 0.7049 GB, free: 11.14 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.2749/1.256, allocations: 53.41 MB / 0.7571 GB, free: 93.82 MB / 478.3 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00874/1.265, allocations: 5.922 MB / 0.7629 GB, free: 93.7 MB / 478.3 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0218/1.287, allocations: 16.86 MB / 0.7793 GB, free: 85.46 MB / 478.3 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.895e-05/1.287, allocations: 80.7 kB / 0.7794 GB, free: 85.39 MB / 478.3 MB Notification: Performance of pre-optimization done (n=439): time 4.669e-06/1.287, allocations: 0 / 0.7794 GB, free: 85.39 MB / 478.3 MB Notification: Performance of matching and sorting (n=439): time 0.02397/1.311, allocations: 13.42 MB / 0.7925 GB, free: 81.36 MB / 478.3 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.033e-05/1.311, allocations: 121.5 kB / 0.7926 GB, free: 81.26 MB / 478.3 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007348/1.318, allocations: 7.491 MB / 0.8 GB, free: 78.66 MB / 478.3 MB Notification: Performance of collectPreVariables (initialization): time 0.0002131/1.319, allocations: 93.27 kB / 0.8 GB, free: 78.58 MB / 478.3 MB Notification: Performance of collectInitialEqns (initialization): time 0.002736/1.321, allocations: 8.523 MB / 0.8084 GB, free: 72.18 MB / 478.3 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007513/1.322, allocations: 1.599 MB / 0.8099 GB, free: 71 MB / 478.3 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002114/1.324, allocations: 2.287 MB / 0.8122 GB, free: 69.89 MB / 478.3 MB Notification: Performance of setup shared object (initialization): time 2.922e-05/1.324, allocations: 301.1 kB / 0.8125 GB, free: 69.59 MB / 478.3 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004437/1.329, allocations: 4.779 MB / 0.8171 GB, free: 67.88 MB / 478.3 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005808/1.335, allocations: 10.49 MB / 0.8274 GB, free: 58.23 MB / 478.3 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01078/1.345, allocations: 16.14 MB / 0.8431 GB, free: 42.2 MB / 478.3 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.982e-05/1.345, allocations: 56 kB / 0.8432 GB, free: 42.14 MB / 478.3 MB Notification: Performance of matching and sorting (n=1411) (initialization): time 0.0162/1.362, allocations: 16.16 MB / 0.859 GB, free: 25.9 MB / 478.3 MB Notification: Performance of prepare postOptimizeDAE: time 7.066e-05/1.362, allocations: 88 kB / 0.8591 GB, free: 25.81 MB / 478.3 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001069/1.362, allocations: 199.9 kB / 0.8592 GB, free: 25.62 MB / 478.3 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004242/1.366, allocations: 1.696 MB / 0.8609 GB, free: 23.92 MB / 478.3 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005539/1.372, allocations: 2.511 MB / 0.8633 GB, free: 21.4 MB / 478.3 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009804/1.381, allocations: 10.77 MB / 0.8739 GB, free: 10.5 MB / 478.3 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00556/1.387, allocations: 1.556 MB / 0.8754 GB, free: 8.926 MB / 478.3 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005372/1.388, allocations: 0.6015 MB / 0.876 GB, free: 8.324 MB / 478.3 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 (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,75.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.006886/1.395, allocations: 7.406 MB / 0.8832 GB, free: 0.8984 MB / 478.3 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006827/1.395, allocations: 0.6248 MB / 0.8838 GB, free: 272 kB / 478.3 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01092/1.406, allocations: 8.256 MB / 0.8919 GB, free: 7.988 MB / 494.3 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.008208/1.414, allocations: 6.651 MB / 0.8984 GB, free: 1.32 MB / 494.3 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.437e-05/1.414, allocations: 16 kB / 0.8984 GB, free: 1.305 MB / 494.3 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.133e-05/1.414, allocations: 23.91 kB / 0.8984 GB, free: 1.281 MB / 494.3 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1712/1.586, allocations: 21.01 MB / 0.9189 GB, free: 140.1 MB / 494.3 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.177e-05/1.586, allocations: 3.938 kB / 0.9189 GB, free: 140.1 MB / 494.3 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002563/1.588, allocations: 0.7656 MB / 0.9197 GB, free: 140.1 MB / 494.3 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004134/1.592, allocations: 1.451 MB / 0.9211 GB, free: 139.8 MB / 494.3 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002243/1.593, allocations: 95.3 kB / 0.9212 GB, free: 139.7 MB / 494.3 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009879/1.602, allocations: 10.43 MB / 0.9314 GB, free: 134.3 MB / 494.3 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.563e-06/1.602, allocations: 0 / 0.9314 GB, free: 134.3 MB / 494.3 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01188/1.614, allocations: 11.98 MB / 0.9431 GB, free: 129.6 MB / 494.3 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001931/1.616, allocations: 1.323 MB / 0.9444 GB, free: 128.8 MB / 494.3 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006605/1.617, allocations: 79.47 kB / 0.9444 GB, free: 128.8 MB / 494.3 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002187/1.619, allocations: 306.6 kB / 0.9447 GB, free: 128.7 MB / 494.3 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005036/1.62, allocations: 291.9 kB / 0.945 GB, free: 128.7 MB / 494.3 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002409/1.62, allocations: 129.2 kB / 0.9451 GB, free: 128.7 MB / 494.3 MB Notification: Performance of sorting global known variables: time 0.0053/1.625, allocations: 4.924 MB / 0.9499 GB, free: 126.9 MB / 494.3 MB Notification: Performance of sort global known variables: time 1.11e-07/1.625, allocations: 0 / 0.9499 GB, free: 126.9 MB / 494.3 MB Notification: Performance of remove unused functions: time 0.007927/1.633, allocations: 4.187 MB / 0.954 GB, free: 125.6 MB / 494.3 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 (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,75.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.01208/1.645, allocations: 12.74 MB / 0.9665 GB, free: 118.7 MB / 494.3 MB Notification: Performance of simCode: created initialization part: time 0.01133/1.657, allocations: 11.12 MB / 0.9773 GB, free: 109 MB / 494.3 MB Notification: Performance of simCode: created event and clocks part: time 4.468e-06/1.657, allocations: 4.375 kB / 0.9773 GB, free: 109 MB / 494.3 MB Notification: Performance of simCode: created simulation system equations: time 0.003895/1.661, allocations: 4.032 MB / 0.9813 GB, free: 105.5 MB / 494.3 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004894/1.665, allocations: 1.465 MB / 0.9827 GB, free: 104.3 MB / 494.3 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2776/1.943, allocations: 128.1 MB / 1.108 GB, free: 148.7 MB / 0.4983 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008701/1.952, allocations: 11.61 MB / 1.119 GB, free: 144.7 MB / 0.4983 GB Notification: Performance of simCode: alias equations: time 0.008001/1.96, allocations: 3.981 MB / 1.123 GB, free: 143.4 MB / 0.4983 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005064/1.965, allocations: 6.08 MB / 1.129 GB, free: 137.7 MB / 0.4983 GB Notification: Performance of SimCode: time 6.71e-07/1.965, allocations: 0 / 1.129 GB, free: 137.7 MB / 0.4983 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 2.378/4.342, allocations: 204.8 MB / 1.329 GB, free: 115.9 MB / 0.4983 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002003/4.343, allocations: 297.7 kB / 1.329 GB, free: 115.5 MB / 0.4983 GB Notification: Performance of buildModelFMU: Generate platform static: time 5.005/9.348, allocations: 1.266 kB / 1.329 GB, free: 115.5 MB / 0.4983 GB (rm -f Modelica_3.2.3_Modelica.Electrical.QuasiStationary.Machines.Examples.TransformerTestbench.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.QuasiStationary.Machines.Examples.TransformerTestbench.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.QuasiStationary.Machines.Examples.TransformerTestbench.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.QuasiStationary.Machines.Examples.TransformerTestbench.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Electrical.QuasiStationary.Machines.Examples.TransformerTestbench_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Electrical_QuasiStationary_Machines_Examples_TransformerTestbench_fmu --startTime=0 --stopTime=0.1 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Electrical_QuasiStationary_Machines_Examples_TransformerTestbench.fmu > Modelica_3.2.3_Modelica.Electrical.QuasiStationary.Machines.Examples.TransformerTestbench.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_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_Modelica.Electrical.QuasiStationary.Machines.Examples.TransformerTestbench.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches