Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_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 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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_4.0.0_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_4.0.0_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.001002/0.00101, allocations: 91.11 kB / 16.65 MB, free: 6.59 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.001303/0.001304, allocations: 182.3 kB / 17.56 MB, free: 6.203 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.544/1.544, allocations: 223.2 MB / 241.6 MB, free: 148 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003437/0.0003437, allocations: 10.06 kB / 301.4 MB, free: 6.133 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1559/0.1563, allocations: 50.42 MB / 351.8 MB, free: 3.711 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.GenerationOfFMUs): time 0.007007/0.1634, allocations: 5.489 MB / 357.3 MB, free: 14.19 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.004883/0.1683, allocations: 1.613 MB / 358.9 MB, free: 12.57 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009044/0.1693, allocations: 27.88 kB / 359 MB, free: 12.55 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005204/0.1698, allocations: 182.5 kB / 359.1 MB, free: 12.37 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000566/0.1704, allocations: 170.4 kB / 359.3 MB, free: 12.2 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001259/0.1716, allocations: 451.6 kB / 359.7 MB, free: 11.76 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001449/0.1731, allocations: 1.297 MB / 361 MB, free: 10.46 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008153/0.1739, allocations: 0.5374 MB / 361.6 MB, free: 9.891 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005323/0.1745, allocations: 370.1 kB / 361.9 MB, free: 9.527 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004604/0.1749, allocations: 417.3 kB / 362.4 MB, free: 9.117 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 9.797e-05/0.175, allocations: 56 kB / 362.4 MB, free: 9.062 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001952/0.1752, allocations: 63.94 kB / 362.5 MB, free: 9 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001466/0.1754, allocations: 171.1 kB / 362.6 MB, free: 8.832 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005028/0.1759, allocations: 0.5491 MB / 363.2 MB, free: 8.273 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00138/0.1773, allocations: 1.413 MB / 364.6 MB, free: 6.855 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.563e-06/0.1773, allocations: 0 / 364.6 MB, free: 6.855 MB / 302.1 MB Notification: Performance of FrontEnd: time 3.387e-06/0.1773, allocations: 0 / 364.6 MB, free: 6.855 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.905e-05/0.1773, allocations: 0 / 364.6 MB, free: 6.855 MB / 302.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.002154/0.1795, allocations: 1.24 MB / 365.8 MB, free: 5.562 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.441e-05/0.1796, allocations: 12.03 kB / 365.9 MB, free: 5.551 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002149/0.1798, allocations: 138.3 kB / 366 MB, free: 5.414 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001057/0.1809, allocations: 0.7197 MB / 366.7 MB, free: 4.652 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.048e-05/0.1809, allocations: 90.41 kB / 366.8 MB, free: 4.562 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001641/0.1811, allocations: 120 kB / 366.9 MB, free: 4.445 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002104/0.1832, allocations: 1.268 MB / 368.2 MB, free: 3.008 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.402e-05/0.1833, allocations: 7.938 kB / 368.2 MB, free: 3 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.503e-05/0.1834, allocations: 52 kB / 368.2 MB, free: 2.949 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.722e-05/0.1834, allocations: 32 kB / 368.3 MB, free: 2.918 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001316/0.1847, allocations: 0.6968 MB / 369 MB, free: 2.219 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3049/0.4896, allocations: 6.817 MB / 375.8 MB, free: 19.1 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007862/0.4905, allocations: 275.2 kB / 376.1 MB, free: 19.05 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003734/0.4909, allocations: 182.5 kB / 376.2 MB, free: 19.04 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001885/0.4911, allocations: 85.97 kB / 376.3 MB, free: 18.95 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.238e-05/0.4911, allocations: 41.44 kB / 376.4 MB, free: 18.91 MB / 302.1 MB Notification: Performance of pre-optimization done (n=27): time 2.525e-06/0.4911, allocations: 0.9688 kB / 376.4 MB, free: 18.91 MB / 302.1 MB Notification: Performance of matching and sorting (n=29): time 0.002722/0.4938, allocations: 1.418 MB / 377.8 MB, free: 18.06 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.021e-05/0.4939, allocations: 81.31 kB / 377.9 MB, free: 17.97 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008959/0.4948, allocations: 0.6602 MB / 378.5 MB, free: 17.82 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.722e-05/0.4948, allocations: 34.86 kB / 378.5 MB, free: 17.79 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004254/0.4953, allocations: 0.679 MB / 379.2 MB, free: 17.41 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001019/0.4954, allocations: 120.3 kB / 379.3 MB, free: 17.34 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001062/0.4955, allocations: 65.8 kB / 379.4 MB, free: 17.32 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001413/0.4956, allocations: 387.4 kB / 379.8 MB, free: 16.97 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002861/0.4959, allocations: 151.9 kB / 379.9 MB, free: 16.92 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004618/0.4964, allocations: 0.5566 MB / 380.5 MB, free: 16.31 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.001022/0.4974, allocations: 0.969 MB / 381.5 MB, free: 15.37 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.766e-06/0.4974, allocations: 7.938 kB / 381.5 MB, free: 15.37 MB / 302.1 MB Notification: Performance of matching and sorting (n=98) (initialization): time 0.001402/0.4989, allocations: 0.8023 MB / 382.3 MB, free: 15.01 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.469e-05/0.4989, allocations: 11.09 kB / 382.3 MB, free: 15.01 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.639e-05/0.4989, allocations: 14.62 kB / 382.3 MB, free: 15.01 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002924/0.4992, allocations: 79.5 kB / 382.4 MB, free: 14.98 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005655/0.4998, allocations: 187.7 kB / 382.6 MB, free: 14.96 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001951/0.5018, allocations: 2.978 MB / 385.5 MB, free: 12.06 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005487/0.5023, allocations: 37.66 kB / 385.6 MB, free: 12.04 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.344e-05/0.5024, allocations: 44.59 kB / 385.6 MB, free: 12.04 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 (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.0005445/0.503, allocations: 276.2 kB / 385.9 MB, free: 11.82 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001861/0.5031, allocations: 73.53 kB / 386 MB, free: 11.78 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001497/0.5033, allocations: 71.67 kB / 386 MB, free: 11.74 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.903e-06/0.5033, allocations: 3.031 kB / 386 MB, free: 11.74 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.065e-05/0.5033, allocations: 2.078 kB / 386 MB, free: 11.74 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.806e-06/0.5034, allocations: 6.359 kB / 386 MB, free: 11.74 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002631/0.506, allocations: 1.263 MB / 387.3 MB, free: 11 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.38e-06/0.506, allocations: 1.125 kB / 387.3 MB, free: 11 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003211/0.5064, allocations: 69.92 kB / 387.4 MB, free: 11 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001892/0.5066, allocations: 55.92 kB / 387.4 MB, free: 10.97 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.057e-05/0.5066, allocations: 14.84 kB / 387.4 MB, free: 10.96 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001872/0.5085, allocations: 2.777 MB / 390.2 MB, free: 8.188 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.031e-06/0.5085, allocations: 6.031 kB / 390.2 MB, free: 8.184 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001017/0.5095, allocations: 0.6488 MB / 390.9 MB, free: 7.758 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001273/0.5097, allocations: 136.5 kB / 391 MB, free: 7.625 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.998e-05/0.5097, allocations: 10.56 kB / 391 MB, free: 7.617 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002604/0.51, allocations: 19.02 kB / 391 MB, free: 7.613 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.465e-05/0.5101, allocations: 27.97 kB / 391.1 MB, free: 7.605 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.03e-05/0.5101, allocations: 11.53 kB / 391.1 MB, free: 7.602 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0007861/0.5109, allocations: 433.2 kB / 391.5 MB, free: 7.414 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.5109, allocations: 4.234 kB / 391.5 MB, free: 7.414 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.001451/0.5124, allocations: 158.4 kB / 391.7 MB, free: 7.395 MB / 302.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.0002028/0.5126, allocations: 115.4 kB / 391.8 MB, free: 7.297 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001731/0.5143, allocations: 0.6611 MB / 392.4 MB, free: 6.922 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 7.985e-06/0.5144, allocations: 1.25 kB / 392.4 MB, free: 6.922 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005075/0.5149, allocations: 366.2 kB / 392.8 MB, free: 6.648 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008736/0.5158, allocations: 77.83 kB / 392.9 MB, free: 6.605 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004344/0.5201, allocations: 2.437 MB / 395.3 MB, free: 4.965 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008658/0.521, allocations: 1.037 MB / 396.3 MB, free: 4.246 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.000406/0.5214, allocations: 83.77 kB / 396.4 MB, free: 4.227 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001365/0.5216, allocations: 56.12 kB / 396.5 MB, free: 4.215 MB / 302.1 MB Notification: Performance of SimCode: time 1.392e-06/0.5216, allocations: 0 / 396.5 MB, free: 4.215 MB / 302.1 MB Notification: Performance of Templates: time 0.014/0.5356, allocations: 5.139 MB / 401.6 MB, free: 2.336 MB / 302.1 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.GenerationOfFMUs.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.GenerationOfFMUs.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.GenerationOfFMUs.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.GenerationOfFMUs.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.GenerationOfFMUs.sim & ./Modelica_4.0.0_Modelica.Electrical.Analog.Examples.GenerationOfFMUs -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.GenerationOfFMUs.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Analog.Examples.GenerationOfFMUs_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/GenerationOfFMUs/GenerationOfFMUs.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.GenerationOfFMUs.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches