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.001335/0.001335, allocations: 103.8 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.001363/0.001363, 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.61/1.61, allocations: 205.1 MB / 223.9 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.001234/0.001234, allocations: 44.41 kB / 280 MB, free: 3.578 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1404/0.1417, allocations: 46.63 MB / 326.6 MB, free: 4.887 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.GenerationOfFMUs): time 0.008218/0.15, allocations: 5.933 MB / 332.5 MB, free: 14.91 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.004574/0.1546, allocations: 1.645 MB / 334.2 MB, free: 13.26 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001268/0.1559, allocations: 27.88 kB / 334.2 MB, free: 13.23 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007201/0.1567, allocations: 186.5 kB / 334.4 MB, free: 13.05 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007432/0.1575, allocations: 182.3 kB / 334.6 MB, free: 12.87 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001213/0.1587, allocations: 443.6 kB / 335 MB, free: 12.44 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.001644/0.1604, allocations: 1.305 MB / 336.3 MB, free: 11.13 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009411/0.1613, allocations: 0.5452 MB / 336.8 MB, free: 10.56 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007236/0.1621, allocations: 422.1 kB / 337.3 MB, free: 10.14 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005439/0.1626, allocations: 481.2 kB / 337.7 MB, free: 9.672 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001128/0.1628, allocations: 72 kB / 337.8 MB, free: 9.602 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002139/0.163, allocations: 87.94 kB / 337.9 MB, free: 9.516 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001882/0.1632, allocations: 223.1 kB / 338.1 MB, free: 9.297 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004908/0.1637, allocations: 0.5631 MB / 338.7 MB, free: 8.73 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001206/0.1649, allocations: 1.448 MB / 340.1 MB, free: 7.277 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.684e-06/0.1649, allocations: 4 kB / 340.1 MB, free: 7.273 MB / 286.1 MB Notification: Performance of FrontEnd: time 9.21e-07/0.1649, allocations: 0 / 340.1 MB, free: 7.273 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.969e-05/0.1649, allocations: 0 / 340.1 MB, free: 7.273 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.002397/0.1673, allocations: 1.462 MB / 341.6 MB, free: 5.758 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.843e-05/0.1674, allocations: 12.03 kB / 341.6 MB, free: 5.746 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002437/0.1677, allocations: 138.3 kB / 341.7 MB, free: 5.609 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001225/0.1689, allocations: 0.7236 MB / 342.5 MB, free: 4.844 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.353e-05/0.169, allocations: 90.41 kB / 342.5 MB, free: 4.754 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001554/0.1692, allocations: 120 kB / 342.7 MB, free: 4.637 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002061/0.1712, allocations: 1.264 MB / 343.9 MB, free: 3.199 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.653e-05/0.1713, allocations: 7.938 kB / 343.9 MB, free: 3.191 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.241e-05/0.1714, allocations: 55.94 kB / 344 MB, free: 3.137 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.649e-05/0.1714, allocations: 32 kB / 344 MB, free: 3.105 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001254/0.1727, allocations: 0.6891 MB / 344.7 MB, free: 2.414 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006502/0.1792, allocations: 6.82 MB / 351.5 MB, free: 11.26 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007497/0.18, allocations: 281.2 kB / 351.8 MB, free: 10.96 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003664/0.1804, allocations: 181.6 kB / 352 MB, free: 10.78 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002453/0.1806, allocations: 89.05 kB / 352.1 MB, free: 10.68 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.149e-05/0.1807, allocations: 38.5 kB / 352.1 MB, free: 10.63 MB / 302.1 MB Notification: Performance of pre-optimization done (n=27): time 2.975e-06/0.1807, allocations: 0 / 352.1 MB, free: 10.63 MB / 302.1 MB Notification: Performance of matching and sorting (n=29): time 0.002799/0.1835, allocations: 1.396 MB / 353.5 MB, free: 9.121 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.192e-05/0.1835, allocations: 85.11 kB / 353.6 MB, free: 9.02 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008732/0.1844, allocations: 0.653 MB / 354.2 MB, free: 8.355 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.296e-05/0.1845, allocations: 33.7 kB / 354.3 MB, free: 8.316 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005163/0.185, allocations: 0.6836 MB / 354.9 MB, free: 7.621 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.813e-05/0.1851, allocations: 118.4 kB / 355.1 MB, free: 7.504 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002303/0.1853, allocations: 142.5 kB / 355.2 MB, free: 7.359 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0002055/0.1856, allocations: 386.8 kB / 355.6 MB, free: 6.973 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002815/0.1858, allocations: 145.9 kB / 355.7 MB, free: 6.828 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000594/0.1865, allocations: 0.5506 MB / 356.3 MB, free: 6.082 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.001226/0.1877, allocations: 0.9544 MB / 357.2 MB, free: 4.895 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.144e-06/0.1877, allocations: 4 kB / 357.2 MB, free: 4.891 MB / 302.1 MB Notification: Performance of matching and sorting (n=98) (initialization): time 0.001394/0.1891, allocations: 0.7912 MB / 358 MB, free: 4.086 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.536e-05/0.1891, allocations: 12 kB / 358 MB, free: 4.074 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.854e-05/0.1892, allocations: 12 kB / 358 MB, free: 4.062 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002649/0.1894, allocations: 81.67 kB / 358.1 MB, free: 3.977 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005749/0.19, allocations: 184.1 kB / 358.3 MB, free: 3.797 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00334/0.1934, allocations: 2.986 MB / 361.3 MB, free: 0.5469 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000598/0.194, allocations: 35.98 kB / 361.3 MB, free: 0.5117 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.63e-05/0.1941, allocations: 48.06 kB / 361.4 MB, free: 476 kB / 302.1 MB Warning: The initial conditions are over specified. The following 2 initial equations are redundant, so they are removed from the initialization system: 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 (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,4,100.0%), (1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0007169/0.1948, allocations: 273.4 kB / 361.6 MB, free: 192 kB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001851/0.195, allocations: 71.06 kB / 361.7 MB, free: 120 kB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001235/0.1951, allocations: 74.36 kB / 361.8 MB, free: 44 kB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.589e-06/0.1951, allocations: 4 kB / 361.8 MB, free: 40 kB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.23e-05/0.1952, allocations: 0 / 361.8 MB, free: 40 kB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.015e-06/0.1952, allocations: 3.984 kB / 361.8 MB, free: 36 kB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00262/0.1978, allocations: 1.251 MB / 363 MB, free: 14.71 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.8e-06/0.1978, allocations: 96 / 363 MB, free: 14.71 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003452/0.1982, allocations: 72.03 kB / 363.1 MB, free: 14.64 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002502/0.1984, allocations: 57.61 kB / 363.2 MB, free: 14.58 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.473e-05/0.1985, allocations: 12 kB / 363.2 MB, free: 14.57 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003094/0.2016, allocations: 2.776 MB / 366 MB, free: 11.52 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.678e-06/0.2016, allocations: 4.031 kB / 366 MB, free: 11.52 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001142/0.2028, allocations: 0.6427 MB / 366.6 MB, free: 10.84 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000179/0.203, allocations: 136.2 kB / 366.7 MB, free: 10.69 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.667e-05/0.203, allocations: 16 kB / 366.7 MB, free: 10.67 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002739/0.2033, allocations: 12 kB / 366.8 MB, free: 10.66 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000109/0.2034, allocations: 35.83 kB / 366.8 MB, free: 10.62 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.502e-05/0.2035, allocations: 12 kB / 366.8 MB, free: 10.61 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0006789/0.2041, allocations: 435 kB / 367.2 MB, free: 10.2 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.2042, allocations: 3.938 kB / 367.2 MB, free: 10.19 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.001191/0.2054, allocations: 160 kB / 367.4 MB, free: 10.04 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 (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,3,100.0%), (1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0002107/0.2056, allocations: 108 kB / 367.5 MB, free: 9.922 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001327/0.2069, allocations: 0.6418 MB / 368.1 MB, free: 9.258 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 4.007e-06/0.2069, allocations: 0 / 368.1 MB, free: 9.258 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005146/0.2074, allocations: 366.5 kB / 368.5 MB, free: 8.875 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006531/0.2081, allocations: 72.86 kB / 368.6 MB, free: 8.801 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004245/0.2124, allocations: 2.337 MB / 370.9 MB, free: 6.426 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008379/0.2132, allocations: 1.038 MB / 371.9 MB, free: 5.359 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0003761/0.2136, allocations: 82.03 kB / 372 MB, free: 5.277 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001621/0.2138, allocations: 55.42 kB / 372.1 MB, free: 5.223 MB / 318.1 MB Notification: Performance of SimCode: time 2.535e-06/0.2138, allocations: 0 / 372.1 MB, free: 5.223 MB / 318.1 MB Notification: Performance of Templates: time 0.01363/0.2274, allocations: 5.187 MB / 377.3 MB, free: 40 kB / 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