Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.QuasiStationary.SinglePhase.Examples.Transformer.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.SinglePhase.Examples.Transformer,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_QuasiStationary_SinglePhase_Examples_Transformer",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.QuasiStationary.SinglePhase.Examples.Transformer,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_QuasiStationary_SinglePhase_Examples_Transformer",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.001384/0.001384, allocations: 114.7 kB / 17.28 MB, free: 6.219 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.00165/0.00165, allocations: 189.3 kB / 18.2 MB, free: 5.297 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.627/1.627, allocations: 205.1 MB / 224 MB, free: 12.46 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.001642/0.001643, allocations: 51.92 kB / 280.3 MB, free: 3.402 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1196/0.1213, allocations: 46.63 MB / 326.9 MB, free: 4.699 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.QuasiStationary.SinglePhase.Examples.Transformer): time 0.007814/0.1291, allocations: 5.857 MB / 332.7 MB, free: 14.8 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.004561/0.1338, allocations: 1.882 MB / 334.6 MB, free: 12.91 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006757/0.1345, allocations: 20 kB / 334.6 MB, free: 12.89 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003566/0.1381, allocations: 1.533 MB / 336.2 MB, free: 11.35 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00232/0.1404, allocations: 0.7468 MB / 336.9 MB, free: 10.6 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006957/0.1412, allocations: 263.6 kB / 337.2 MB, free: 10.34 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.001101/0.1423, allocations: 0.8834 MB / 338.1 MB, free: 9.457 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001518/0.1438, allocations: 0.9964 MB / 339.1 MB, free: 8.434 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005719/0.1444, allocations: 386.6 kB / 339.4 MB, free: 8.055 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005828/0.145, allocations: 0.5292 MB / 340 MB, free: 7.523 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001009/0.1451, allocations: 80 kB / 340 MB, free: 7.445 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005515/0.1456, allocations: 247.8 kB / 340.3 MB, free: 7.203 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001457/0.1458, allocations: 211.2 kB / 340.5 MB, free: 6.996 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003854/0.1462, allocations: 469.7 kB / 340.9 MB, free: 6.535 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001272/0.1475, allocations: 1.219 MB / 342.2 MB, free: 5.312 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.789e-06/0.1475, allocations: 7.875 kB / 342.2 MB, free: 5.305 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.633e-06/0.1475, allocations: 0 / 342.2 MB, free: 5.305 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.241e-05/0.1475, allocations: 0 / 342.2 MB, free: 5.305 MB / 286.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 276 * Number of variables: 276 Notification: Performance of Generate backend data structure: time 0.00339/0.1509, allocations: 1.421 MB / 343.6 MB, free: 3.832 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.35e-05/0.151, allocations: 8.031 kB / 343.6 MB, free: 3.824 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001971/0.1512, allocations: 165 kB / 343.8 MB, free: 3.652 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006644/0.1578, allocations: 0.9676 MB / 344.7 MB, free: 2.684 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006259/0.1585, allocations: 443 kB / 345.2 MB, free: 2.211 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.472e-05/0.1586, allocations: 82.55 kB / 345.2 MB, free: 2.129 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001475/0.1587, allocations: 108.3 kB / 345.3 MB, free: 2.023 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001943/0.1607, allocations: 1.133 MB / 346.5 MB, free: 0.8516 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.153e-05/0.1607, allocations: 0 / 346.5 MB, free: 0.8516 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.635e-05/0.1608, allocations: 44 kB / 346.5 MB, free: 0.8086 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.724e-05/0.1608, allocations: 28 kB / 346.6 MB, free: 0.7812 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001887/0.1627, allocations: 1.132 MB / 347.7 MB, free: 15.65 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005385/0.1681, allocations: 3.968 MB / 351.7 MB, free: 11.44 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003597/0.1718, allocations: 3.748 MB / 355.4 MB, free: 7.02 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005355/0.1723, allocations: 324.6 kB / 355.7 MB, free: 6.695 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001174/0.1724, allocations: 101.6 kB / 355.8 MB, free: 6.578 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.885e-05/0.1725, allocations: 47.06 kB / 355.9 MB, free: 6.523 MB / 302.1 MB Notification: Performance of pre-optimization done (n=71): time 3.246e-06/0.1725, allocations: 0 / 355.9 MB, free: 6.523 MB / 302.1 MB Notification: Performance of matching and sorting (n=71): time 0.00145/0.174, allocations: 0.7601 MB / 356.6 MB, free: 5.758 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.339e-05/0.174, allocations: 111.4 kB / 356.7 MB, free: 5.625 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003473/0.1744, allocations: 328.2 kB / 357.1 MB, free: 5.293 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 4.259e-05/0.1744, allocations: 37.7 kB / 357.1 MB, free: 5.25 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002534/0.1747, allocations: 445.9 kB / 357.5 MB, free: 4.805 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001634/0.1749, allocations: 236.5 kB / 357.8 MB, free: 4.57 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002285/0.1751, allocations: 178.6 kB / 357.9 MB, free: 4.391 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.000137/0.1752, allocations: 354.8 kB / 358.3 MB, free: 4.035 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004082/0.1757, allocations: 245.9 kB / 358.5 MB, free: 3.793 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007788/0.1764, allocations: 0.563 MB / 359.1 MB, free: 3.086 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001167/0.1776, allocations: 0.8676 MB / 359.9 MB, free: 2.074 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.643e-06/0.1776, allocations: 4 kB / 360 MB, free: 2.07 MB / 302.1 MB Notification: Performance of matching and sorting (n=122) (initialization): time 0.001412/0.1791, allocations: 0.9072 MB / 360.9 MB, free: 1.156 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.067e-05/0.1791, allocations: 19.98 kB / 360.9 MB, free: 1.137 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.493e-05/0.1791, allocations: 8 kB / 360.9 MB, free: 1.129 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.244e-05/0.1792, allocations: 16 kB / 360.9 MB, free: 1.113 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007884/0.18, allocations: 227.6 kB / 361.1 MB, free: 0.8906 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.35e-05/0.18, allocations: 27.91 kB / 361.1 MB, free: 0.8633 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005263/0.1805, allocations: 106.9 kB / 361.3 MB, free: 0.7578 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.789e-05/0.1806, allocations: 47.98 kB / 361.3 MB, free: 0.7109 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 47 * 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 (122): * Single equations (assignments): 122 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003431/0.181, allocations: 241.5 kB / 361.5 MB, free: 476 kB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001275/0.1811, allocations: 51.38 kB / 361.6 MB, free: 424 kB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00132/0.1824, allocations: 0.6822 MB / 362.3 MB, free: 15.73 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.076e-05/0.1824, allocations: 8 kB / 362.3 MB, free: 15.72 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.657e-06/0.1825, allocations: 0 / 362.3 MB, free: 15.72 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.177e-05/0.1825, allocations: 7.984 kB / 362.3 MB, free: 15.71 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002649/0.1851, allocations: 1.606 MB / 363.9 MB, free: 14.05 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.188e-06/0.1851, allocations: 0 / 363.9 MB, free: 14.05 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005901/0.1857, allocations: 147.8 kB / 364 MB, free: 13.91 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.855e-06/0.1858, allocations: 4 kB / 364 MB, free: 13.9 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.987e-05/0.1858, allocations: 12 kB / 364.1 MB, free: 13.89 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.162e-06/0.1858, allocations: 4 kB / 364.1 MB, free: 13.89 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.616e-06/0.1858, allocations: 3.938 kB / 364.1 MB, free: 13.88 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00164/0.1875, allocations: 1.169 MB / 365.2 MB, free: 12.69 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001376/0.1876, allocations: 124.5 kB / 365.3 MB, free: 12.55 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.845e-05/0.1877, allocations: 19.98 kB / 365.4 MB, free: 12.53 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003502/0.1881, allocations: 20.06 kB / 365.4 MB, free: 12.51 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001045/0.1882, allocations: 48.59 kB / 365.4 MB, free: 12.46 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.559e-05/0.1882, allocations: 23.98 kB / 365.5 MB, free: 12.44 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0001986/0.1884, allocations: 203.1 kB / 365.7 MB, free: 12.25 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.61e-07/0.1884, allocations: 0 / 365.7 MB, free: 12.25 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.000806/0.1892, allocations: 255 kB / 365.9 MB, free: 12 MB / 318.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 2 (load.pin_p.reference.gamma,voltageSource.pin_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 (78): * Single equations (assignments): 78 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.002065/0.1913, allocations: 1.749 MB / 367.7 MB, free: 10.21 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001466/0.1928, allocations: 0.7261 MB / 368.4 MB, free: 9.492 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 6.412e-06/0.1928, allocations: 0 / 368.4 MB, free: 9.492 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000497/0.1933, allocations: 323.5 kB / 368.7 MB, free: 9.176 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006759/0.194, allocations: 53.39 kB / 368.8 MB, free: 9.125 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00845/0.2025, allocations: 5.953 MB / 374.7 MB, free: 2.789 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005928/0.2031, allocations: 0.9241 MB / 375.6 MB, free: 1.84 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0003995/0.2035, allocations: 100.8 kB / 375.7 MB, free: 1.738 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003688/0.2039, allocations: 287.3 kB / 376 MB, free: 1.457 MB / 318.1 MB Notification: Performance of SimCode: time 1.152e-06/0.2039, allocations: 0 / 376 MB, free: 1.457 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2059/0.4098, allocations: 10.15 MB / 386.2 MB, free: 52.97 MB / 318.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001875/0.41, allocations: 223.3 kB / 386.4 MB, free: 52.71 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.325/2.735, allocations: 0 / 386.4 MB, free: 52.71 MB / 318.1 MB (rm -f Modelica_3.2.3_Modelica.Electrical.QuasiStationary.SinglePhase.Examples.Transformer.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.QuasiStationary.SinglePhase.Examples.Transformer.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.QuasiStationary.SinglePhase.Examples.Transformer.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.QuasiStationary.SinglePhase.Examples.Transformer.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Electrical.QuasiStationary.SinglePhase.Examples.Transformer_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Electrical_QuasiStationary_SinglePhase_Examples_Transformer_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Electrical_QuasiStationary_SinglePhase_Examples_Transformer.fmu > Modelica_3.2.3_Modelica.Electrical.QuasiStationary.SinglePhase.Examples.Transformer.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.QuasiStationary.SinglePhase.Examples.Transformer_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/QuasiStationary/SinglePhase/Examples/Transformer/Transformer.csv","../files/Modelica_3.2.3_Modelica.Electrical.QuasiStationary.SinglePhase.Examples.Transformer.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches