Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Analog.Examples.GenerationOfFMUs.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: translateModel(Modelica.Electrical.Analog.Examples.GenerationOfFMUs,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|capacitor2a.v|capacitor2b.v|directCapacitor1.capacitor.v|directInductor3.inductor.i|inductor4a.i|inductor4b.i",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.Analog.Examples.GenerationOfFMUs") translateModel(Modelica.Electrical.Analog.Examples.GenerationOfFMUs,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|capacitor2a.v|capacitor2b.v|directCapacitor1.capacitor.v|directInductor3.inductor.i|inductor4a.i|inductor4b.i",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.Analog.Examples.GenerationOfFMUs") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009266/0.0009265, allocations: 92.25 kB / 16.95 MB, free: 6.441 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.001053/0.001053, allocations: 181.2 kB / 17.84 MB, free: 6.008 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.875/1.875, allocations: 205.4 MB / 224 MB, free: 13.07 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.0005573/0.0005573, allocations: 15.94 kB / 280.8 MB, free: 3.723 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1487/0.1493, allocations: 47.57 MB / 328.3 MB, free: 4.082 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.GenerationOfFMUs): time 0.006475/0.1558, allocations: 5.125 MB / 333.5 MB, free: 14.93 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0042/0.16, allocations: 1.602 MB / 335.1 MB, free: 13.32 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001222/0.1613, allocations: 31.81 kB / 335.1 MB, free: 13.29 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005692/0.1619, allocations: 174.5 kB / 335.3 MB, free: 13.12 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006209/0.1625, allocations: 174.4 kB / 335.4 MB, free: 12.95 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001247/0.1638, allocations: 327.6 kB / 335.8 MB, free: 12.62 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.00147/0.1653, allocations: 1.235 MB / 337 MB, free: 11.39 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007921/0.1661, allocations: 453.9 kB / 337.4 MB, free: 10.93 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005382/0.1666, allocations: 354.3 kB / 337.8 MB, free: 10.58 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004525/0.1671, allocations: 397.7 kB / 338.2 MB, free: 10.19 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 9.471e-05/0.1672, allocations: 48 kB / 338.2 MB, free: 10.14 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001875/0.1674, allocations: 67.98 kB / 338.3 MB, free: 10.07 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001589/0.1676, allocations: 171.2 kB / 338.5 MB, free: 9.906 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001949/0.1678, allocations: 241 kB / 338.7 MB, free: 9.664 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001077/0.1689, allocations: 1.157 MB / 339.9 MB, free: 8.504 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.023e-05/0.1689, allocations: 0 / 339.9 MB, free: 8.504 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.966e-06/0.1689, allocations: 0 / 339.9 MB, free: 8.504 MB / 286.1 MB Notification: Performance of Transformations before backend: time 2.069e-05/0.1689, allocations: 0 / 339.9 MB, free: 8.504 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: 306 * Number of variables: 306 Notification: Performance of Generate backend data structure: time 0.002029/0.1709, allocations: 1.248 MB / 341.1 MB, free: 7.203 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.77e-05/0.171, allocations: 8.031 kB / 341.1 MB, free: 7.195 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002029/0.1712, allocations: 142.3 kB / 341.2 MB, free: 7.055 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001/0.1722, allocations: 0.693 MB / 341.9 MB, free: 6.32 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.841e-05/0.1723, allocations: 90.36 kB / 342 MB, free: 6.23 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001456/0.1725, allocations: 123.9 kB / 342.1 MB, free: 6.109 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002027/0.1745, allocations: 1.256 MB / 343.4 MB, free: 4.684 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.472e-05/0.1745, allocations: 7.938 kB / 343.4 MB, free: 4.676 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001044/0.1747, allocations: 60 kB / 343.5 MB, free: 4.617 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.612e-05/0.1747, allocations: 32 kB / 343.5 MB, free: 4.586 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001262/0.176, allocations: 0.6812 MB / 344.2 MB, free: 3.902 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00617/0.1822, allocations: 6.836 MB / 351 MB, free: 12.73 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007094/0.1829, allocations: 273.2 kB / 351.3 MB, free: 12.44 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003448/0.1833, allocations: 177.7 kB / 351.5 MB, free: 12.26 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000186/0.1835, allocations: 89.09 kB / 351.5 MB, free: 12.16 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.331e-05/0.1835, allocations: 42.55 kB / 351.6 MB, free: 12.11 MB / 302.1 MB Notification: Performance of pre-optimization done (n=27): time 2.785e-06/0.1835, allocations: 0 / 351.6 MB, free: 12.11 MB / 302.1 MB Notification: Performance of matching and sorting (n=29): time 0.002696/0.1862, allocations: 1.414 MB / 353 MB, free: 10.58 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.212e-05/0.1863, allocations: 89.09 kB / 353.1 MB, free: 10.48 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008748/0.1872, allocations: 0.649 MB / 353.7 MB, free: 9.82 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.729e-05/0.1873, allocations: 33.7 kB / 353.8 MB, free: 9.781 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000577/0.1878, allocations: 0.672 MB / 354.4 MB, free: 9.098 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001189/0.188, allocations: 122.4 kB / 354.6 MB, free: 8.977 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.78e-05/0.188, allocations: 16 kB / 354.6 MB, free: 8.961 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0002263/0.1882, allocations: 386.8 kB / 355 MB, free: 8.574 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003034/0.1886, allocations: 149.9 kB / 355.1 MB, free: 8.43 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006503/0.1892, allocations: 0.5506 MB / 355.7 MB, free: 7.684 MB / 302.1 MB Warning: It was not possible to determine if the initialization problem is consistent, because of not evaluable parameters/start values during compile time: directCapacitor1.currentToVoltage.y = $START.directCapacitor1.currentToVoltage.y ($START.inverseCapacitor1.capacitor.v = $START.directCapacitor1.currentToVoltage.y) Warning: It was not possible to determine if the initialization problem is consistent, because of not evaluable parameters/start values during compile time: directInductor3.currentToVoltage.y = $START.directInductor3.currentToVoltage.y ($START.inverseInductor3.inductor.i = $START.directInductor3.currentToVoltage.y) Notification: Performance of analyzeInitialSystem (initialization): time 0.0008172/0.19, allocations: 437.9 kB / 356.1 MB, free: 7.219 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.162e-06/0.1901, allocations: 4 kB / 356.1 MB, free: 7.215 MB / 302.1 MB Notification: Performance of matching and sorting (n=98) (initialization): time 0.001574/0.1916, allocations: 0.7888 MB / 356.9 MB, free: 6.414 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.529e-05/0.1917, allocations: 12.16 kB / 356.9 MB, free: 6.402 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.691e-05/0.1917, allocations: 20 kB / 356.9 MB, free: 6.383 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003357/0.1921, allocations: 81.62 kB / 357 MB, free: 6.297 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005646/0.1927, allocations: 187.7 kB / 357.2 MB, free: 6.113 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002729/0.1954, allocations: 2.982 MB / 360.2 MB, free: 2.859 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004717/0.1959, allocations: 35.94 kB / 360.2 MB, free: 2.824 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.412e-05/0.196, allocations: 44 kB / 360.2 MB, free: 2.781 MB / 302.1 MB Warning: The initial conditions are over specified. The following 2 initial equations are redundant, so they are removed from the initialization sytem: directCapacitor1.currentToVoltage.y = $START.directCapacitor1.currentToVoltage.y directInductor3.currentToVoltage.y = $START.directInductor3.currentToVoltage.y. Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 65 * 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 (91): * Single equations (assignments): 89 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 4,(1,100.0%) 3} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0006448/0.1966, allocations: 277.5 kB / 360.5 MB, free: 2.5 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001728/0.1968, allocations: 75.06 kB / 360.6 MB, free: 2.426 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001641/0.197, allocations: 70.41 kB / 360.6 MB, free: 2.352 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.226e-06/0.197, allocations: 4 kB / 360.6 MB, free: 2.348 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.885e-05/0.197, allocations: 7.953 kB / 360.7 MB, free: 2.34 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.794e-06/0.197, allocations: 3.984 kB / 360.7 MB, free: 2.336 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00237/0.1994, allocations: 1.259 MB / 361.9 MB, free: 1.004 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.248e-06/0.1994, allocations: 0 / 361.9 MB, free: 1.004 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003214/0.1997, allocations: 63.95 kB / 362 MB, free: 0.9414 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001936/0.1999, allocations: 57.62 kB / 362 MB, free: 0.8789 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.473e-05/0.2, allocations: 11.98 kB / 362 MB, free: 0.8672 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00237/0.2024, allocations: 2.779 MB / 364.8 MB, free: 13.83 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.599e-06/0.2024, allocations: 0 / 364.8 MB, free: 13.83 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001018/0.2034, allocations: 0.6522 MB / 365.5 MB, free: 13.14 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001806/0.2036, allocations: 136.2 kB / 365.6 MB, free: 12.99 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.416e-05/0.2037, allocations: 8.062 kB / 365.6 MB, free: 12.98 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002709/0.204, allocations: 19.98 kB / 365.6 MB, free: 12.96 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001008/0.2041, allocations: 31.86 kB / 365.7 MB, free: 12.93 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.156e-05/0.2041, allocations: 11.98 kB / 365.7 MB, free: 12.92 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0006219/0.2047, allocations: 427 kB / 366.1 MB, free: 12.51 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.2047, allocations: 4 kB / 366.1 MB, free: 12.5 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.001098/0.2058, allocations: 160 kB / 366.3 MB, free: 12.35 MB / 318.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 6 (inverseInductor3.inductor.i,inductor4a.i,inductor4b.i,directCapacitor1.currentToVoltage.y,capacitor2a.v,capacitor2b.v) * 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 (24): * Single equations (assignments): 22 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 3,(1,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002064/0.2061, allocations: 111.2 kB / 366.4 MB, free: 12.23 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001331/0.2074, allocations: 0.655 MB / 367 MB, free: 11.55 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 8.436e-06/0.2074, allocations: 4 kB / 367 MB, free: 11.55 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005349/0.208, allocations: 358.2 kB / 367.4 MB, free: 11.17 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006569/0.2086, allocations: 91.28 kB / 367.5 MB, free: 11.09 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004319/0.213, allocations: 2.311 MB / 369.8 MB, free: 8.734 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009006/0.2139, allocations: 1.034 MB / 370.8 MB, free: 7.672 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0003598/0.2143, allocations: 93.95 kB / 370.9 MB, free: 7.578 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001233/0.2144, allocations: 59.34 kB / 371 MB, free: 7.52 MB / 318.1 MB Notification: Performance of SimCode: time 1.703e-06/0.2144, allocations: 4 kB / 371 MB, free: 7.516 MB / 318.1 MB Notification: Performance of Templates: time 0.01363/0.228, allocations: 5.008 MB / 376 MB, free: 2.512 MB / 318.1 MB make -j1 -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.GenerationOfFMUs.makefile (rm -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.GenerationOfFMUs.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Analog.Examples.GenerationOfFMUs.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Analog.Examples.GenerationOfFMUs.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.GenerationOfFMUs.sim & ./Modelica_3.2.3_Modelica.Electrical.Analog.Examples.GenerationOfFMUs -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.Analog.Examples.GenerationOfFMUs.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Analog.Examples.GenerationOfFMUs_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Analog/Examples/GenerationOfFMUs/GenerationOfFMUs.csv","../files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.GenerationOfFMUs.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches