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.0009445/0.0009445, allocations: 92.5 kB / 17.3 MB, free: 6.387 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.001167/0.001167, allocations: 173.8 kB / 18.2 MB, free: 5.551 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.973/1.973, allocations: 205.4 MB / 224.4 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.000568/0.0005683, allocations: 17.22 kB / 281.4 MB, free: 3.418 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1303/0.1309, allocations: 47.58 MB / 329 MB, free: 3.758 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.GenerationOfFMUs): time 0.006922/0.1379, allocations: 5.463 MB / 334.4 MB, free: 14.26 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.005549/0.1435, allocations: 1.637 MB / 336.1 MB, free: 12.62 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001972/0.1455, allocations: 27.88 kB / 336.1 MB, free: 12.59 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001033/0.1466, allocations: 178.5 kB / 336.3 MB, free: 12.41 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001636/0.1482, allocations: 178.4 kB / 336.4 MB, free: 12.24 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001763/0.15, allocations: 443.6 kB / 336.9 MB, free: 11.8 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.002548/0.1526, allocations: 1.301 MB / 338.2 MB, free: 10.5 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001271/0.1539, allocations: 0.5491 MB / 338.7 MB, free: 9.926 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008247/0.1547, allocations: 366.1 kB / 339.1 MB, free: 9.566 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008518/0.1556, allocations: 413.3 kB / 339.5 MB, free: 9.16 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002652/0.1559, allocations: 52 kB / 339.5 MB, free: 9.109 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004134/0.1563, allocations: 63.94 kB / 339.6 MB, free: 9.047 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002444/0.1566, allocations: 179.1 kB / 339.8 MB, free: 8.871 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009399/0.1575, allocations: 0.5414 MB / 340.3 MB, free: 8.32 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001763/0.1593, allocations: 1.413 MB / 341.7 MB, free: 6.902 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.952e-06/0.1593, allocations: 0 / 341.7 MB, free: 6.902 MB / 286.1 MB Notification: Performance of FrontEnd: time 3.576e-06/0.1593, allocations: 0 / 341.7 MB, free: 6.902 MB / 286.1 MB Notification: Performance of Transformations before backend: time 6.684e-05/0.1594, allocations: 4 kB / 341.7 MB, free: 6.898 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.002872/0.1623, allocations: 1.232 MB / 343 MB, free: 5.613 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.301e-05/0.1623, allocations: 12.03 kB / 343 MB, free: 5.602 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000366/0.1627, allocations: 138.3 kB / 343.1 MB, free: 5.465 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001419/0.1641, allocations: 0.7275 MB / 343.8 MB, free: 4.695 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.151e-05/0.1642, allocations: 90.41 kB / 343.9 MB, free: 4.605 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00018/0.1644, allocations: 112 kB / 344 MB, free: 4.496 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002527/0.167, allocations: 1.272 MB / 345.3 MB, free: 3.051 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.938e-05/0.167, allocations: 7.938 kB / 345.3 MB, free: 3.043 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.385e-05/0.1671, allocations: 48 kB / 345.4 MB, free: 2.996 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.454e-05/0.1672, allocations: 32 kB / 345.4 MB, free: 2.965 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001468/0.1686, allocations: 0.7007 MB / 346.1 MB, free: 2.262 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007391/0.1761, allocations: 6.84 MB / 352.9 MB, free: 11.09 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007845/0.1769, allocations: 265.2 kB / 353.2 MB, free: 10.81 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004171/0.1773, allocations: 185.7 kB / 353.4 MB, free: 10.62 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002347/0.1776, allocations: 81.11 kB / 353.4 MB, free: 10.52 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.933e-05/0.1776, allocations: 42.5 kB / 353.5 MB, free: 10.47 MB / 302.1 MB Notification: Performance of pre-optimization done (n=27): time 3.106e-06/0.1777, allocations: 4 kB / 353.5 MB, free: 10.47 MB / 302.1 MB Notification: Performance of matching and sorting (n=29): time 0.002898/0.1806, allocations: 1.426 MB / 354.9 MB, free: 8.934 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.155e-05/0.1806, allocations: 81.11 kB / 355 MB, free: 8.836 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009077/0.1816, allocations: 0.653 MB / 355.7 MB, free: 8.172 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.303e-05/0.1816, allocations: 37.7 kB / 355.7 MB, free: 8.129 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005177/0.1821, allocations: 0.6875 MB / 356.4 MB, free: 7.43 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.545e-05/0.1822, allocations: 110.5 kB / 356.5 MB, free: 7.32 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.775e-05/0.1823, allocations: 65.69 kB / 356.5 MB, free: 7.25 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0002033/0.1825, allocations: 382.8 kB / 356.9 MB, free: 6.867 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000295/0.1828, allocations: 149.9 kB / 357.1 MB, free: 6.719 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005913/0.1834, allocations: 0.5585 MB / 357.6 MB, free: 5.965 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.001382/0.1848, allocations: 0.958 MB / 358.6 MB, free: 4.77 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.265e-06/0.1849, allocations: 8 kB / 358.6 MB, free: 4.762 MB / 302.1 MB Notification: Performance of matching and sorting (n=98) (initialization): time 0.001352/0.1862, allocations: 0.7984 MB / 359.4 MB, free: 3.953 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.694e-05/0.1863, allocations: 15.94 kB / 359.4 MB, free: 3.938 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.95e-05/0.1863, allocations: 12 kB / 359.4 MB, free: 3.926 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002836/0.1866, allocations: 81.67 kB / 359.5 MB, free: 3.84 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005511/0.1871, allocations: 188 kB / 359.7 MB, free: 3.656 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003013/0.1902, allocations: 2.99 MB / 362.7 MB, free: 412 kB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005342/0.1907, allocations: 40.05 kB / 362.7 MB, free: 372 kB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.076e-05/0.1908, allocations: 44 kB / 362.8 MB, free: 328 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 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 (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.0006609/0.1915, allocations: 269.4 kB / 363 MB, free: 48 kB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002095/0.1917, allocations: 75.22 kB / 363.1 MB, free: 15.97 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001624/0.1919, allocations: 74.48 kB / 363.2 MB, free: 15.89 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.186e-06/0.1919, allocations: 0 / 363.2 MB, free: 15.89 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.29e-05/0.1919, allocations: 8 kB / 363.2 MB, free: 15.89 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.995e-06/0.1919, allocations: 7.984 kB / 363.2 MB, free: 15.88 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002227/0.1941, allocations: 1.259 MB / 364.4 MB, free: 14.55 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.562e-06/0.1942, allocations: 3.984 kB / 364.4 MB, free: 14.54 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003161/0.1945, allocations: 67.91 kB / 364.5 MB, free: 14.48 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001924/0.1947, allocations: 61.7 kB / 364.6 MB, free: 14.41 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.749e-05/0.1947, allocations: 12 kB / 364.6 MB, free: 14.4 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002345/0.1971, allocations: 2.775 MB / 367.4 MB, free: 11.35 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.683e-06/0.1971, allocations: 32 / 367.4 MB, free: 11.35 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009602/0.1981, allocations: 0.6506 MB / 368 MB, free: 10.67 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001938/0.1983, allocations: 136.2 kB / 368.1 MB, free: 10.52 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.05e-05/0.1983, allocations: 20.17 kB / 368.2 MB, free: 10.5 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002722/0.1986, allocations: 12 kB / 368.2 MB, free: 10.48 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001056/0.1987, allocations: 39.83 kB / 368.2 MB, free: 10.45 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.077e-05/0.1988, allocations: 8 kB / 368.2 MB, free: 10.44 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0006533/0.1994, allocations: 439 kB / 368.6 MB, free: 10.02 MB / 318.1 MB Notification: Performance of sort global known variables: time 4.01e-07/0.1994, allocations: 0 / 368.6 MB, free: 10.02 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.001047/0.2005, allocations: 160 kB / 368.8 MB, free: 9.859 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.0001834/0.2007, allocations: 108.3 kB / 368.9 MB, free: 9.746 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001346/0.202, allocations: 0.6562 MB / 369.6 MB, free: 9.066 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 4.799e-06/0.2021, allocations: 0.5 kB / 369.6 MB, free: 9.066 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005451/0.2026, allocations: 369.2 kB / 369.9 MB, free: 8.68 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006878/0.2033, allocations: 75.42 kB / 370 MB, free: 8.602 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004099/0.2074, allocations: 2.444 MB / 372.4 MB, free: 6.117 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008275/0.2083, allocations: 1.034 MB / 373.5 MB, free: 5.055 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.000362/0.2086, allocations: 90 kB / 373.6 MB, free: 4.965 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001198/0.2088, allocations: 55.42 kB / 373.6 MB, free: 4.91 MB / 318.1 MB Notification: Performance of SimCode: time 1.764e-06/0.2088, allocations: 0 / 373.6 MB, free: 4.91 MB / 318.1 MB Notification: Performance of Templates: time 0.2485/0.4572, allocations: 5.13 MB / 378.7 MB, free: 51.18 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