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.001552/0.001553, allocations: 106.6 kB / 16.92 MB, free: 6.145 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.001703/0.001703, allocations: 187.4 kB / 17.85 MB, free: 5.285 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.481/1.481, allocations: 222.9 MB / 241.5 MB, free: 15.22 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001218/0.001218, allocations: 51.16 kB / 300.6 MB, free: 5.875 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1547/0.1559, allocations: 49.45 MB / 350.1 MB, free: 4.418 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.GenerationOfFMUs): time 0.008797/0.1648, allocations: 5.985 MB / 356 MB, free: 14.39 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.004445/0.1693, allocations: 1.656 MB / 357.7 MB, free: 12.73 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008204/0.1701, allocations: 31.88 kB / 357.7 MB, free: 12.7 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000699/0.1708, allocations: 253.5 kB / 358 MB, free: 12.45 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006755/0.1716, allocations: 213.8 kB / 358.2 MB, free: 12.24 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00138/0.173, allocations: 0.5032 MB / 358.7 MB, free: 11.74 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001544/0.1745, allocations: 1.384 MB / 360.1 MB, free: 10.35 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009419/0.1755, allocations: 0.6169 MB / 360.7 MB, free: 9.711 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005757/0.1761, allocations: 474.2 kB / 361.1 MB, free: 9.246 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005339/0.1766, allocations: 0.505 MB / 361.6 MB, free: 8.738 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001526/0.1768, allocations: 120 kB / 361.8 MB, free: 8.621 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002501/0.177, allocations: 136 kB / 361.9 MB, free: 8.488 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002186/0.1773, allocations: 263.1 kB / 362.2 MB, free: 8.23 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005144/0.1778, allocations: 0.6061 MB / 362.8 MB, free: 7.621 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001457/0.1792, allocations: 1.565 MB / 364.3 MB, free: 6.051 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.372e-06/0.1793, allocations: 0 / 364.3 MB, free: 6.051 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.873e-06/0.1793, allocations: 0 / 364.3 MB, free: 6.051 MB / 302.1 MB Notification: Performance of Transformations before backend: time 2.267e-05/0.1793, allocations: 0 / 364.3 MB, free: 6.051 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.002194/0.1815, allocations: 1.468 MB / 365.8 MB, free: 4.531 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.407e-05/0.1816, allocations: 12.03 kB / 365.8 MB, free: 4.52 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002201/0.1818, allocations: 142.2 kB / 365.9 MB, free: 4.379 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001018/0.1828, allocations: 0.7199 MB / 366.7 MB, free: 3.617 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.025e-05/0.1829, allocations: 94.41 kB / 366.8 MB, free: 3.523 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001514/0.1831, allocations: 116 kB / 366.9 MB, free: 3.41 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002045/0.1851, allocations: 1.264 MB / 368.1 MB, free: 1.977 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.413e-05/0.1852, allocations: 7.938 kB / 368.1 MB, free: 1.969 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.866e-05/0.1853, allocations: 52 kB / 368.2 MB, free: 1.918 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.426e-05/0.1853, allocations: 32 kB / 368.2 MB, free: 1.887 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001237/0.1866, allocations: 0.6968 MB / 368.9 MB, free: 1.188 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2965/0.483, allocations: 6.806 MB / 375.7 MB, free: 19.59 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006999/0.4838, allocations: 271 kB / 376 MB, free: 19.54 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003996/0.4842, allocations: 185.3 kB / 376.2 MB, free: 19.52 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002258/0.4844, allocations: 86.25 kB / 376.3 MB, free: 19.43 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.418e-05/0.4845, allocations: 37.73 kB / 376.3 MB, free: 19.39 MB / 302.1 MB Notification: Performance of pre-optimization done (n=27): time 1.573e-06/0.4845, allocations: 0 / 376.3 MB, free: 19.39 MB / 302.1 MB Notification: Performance of matching and sorting (n=29): time 0.00255/0.487, allocations: 1.393 MB / 377.7 MB, free: 18.49 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.845e-05/0.4871, allocations: 82.2 kB / 377.8 MB, free: 18.39 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007921/0.4879, allocations: 0.6615 MB / 378.4 MB, free: 18.1 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.258e-05/0.4879, allocations: 31.08 kB / 378.5 MB, free: 18.06 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000374/0.4883, allocations: 0.6793 MB / 379.1 MB, free: 17.53 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.782e-05/0.4884, allocations: 116.3 kB / 379.3 MB, free: 17.44 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002319/0.4886, allocations: 148 kB / 379.4 MB, free: 17.36 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001665/0.4888, allocations: 388.3 kB / 379.8 MB, free: 17.01 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002972/0.4891, allocations: 143.1 kB / 379.9 MB, free: 16.96 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004817/0.4896, allocations: 0.5495 MB / 380.5 MB, free: 16.36 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.0009776/0.4906, allocations: 0.9647 MB / 381.4 MB, free: 15.41 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.745e-06/0.4906, allocations: 4.188 kB / 381.4 MB, free: 15.41 MB / 302.1 MB Notification: Performance of matching and sorting (n=98) (initialization): time 0.001236/0.4918, allocations: 0.8007 MB / 382.2 MB, free: 15.05 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.517e-05/0.4919, allocations: 13.31 kB / 382.2 MB, free: 15.05 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.197e-05/0.4919, allocations: 14.34 kB / 382.3 MB, free: 15.05 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002511/0.4921, allocations: 86.22 kB / 382.3 MB, free: 15.02 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005371/0.4927, allocations: 181.9 kB / 382.5 MB, free: 15 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002159/0.4949, allocations: 3.327 MB / 385.9 MB, free: 11.75 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005926/0.4955, allocations: 31.31 kB / 385.9 MB, free: 11.74 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.193e-05/0.4956, allocations: 40.58 kB / 385.9 MB, free: 11.74 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 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.0006816/0.4963, allocations: 274.9 kB / 386.2 MB, free: 11.52 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003741/0.4966, allocations: 73.69 kB / 386.3 MB, free: 11.48 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001751/0.4968, allocations: 79.3 kB / 386.3 MB, free: 11.44 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.163e-05/0.4968, allocations: 4.328 kB / 386.3 MB, free: 11.44 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.596e-05/0.4969, allocations: 1.25 kB / 386.3 MB, free: 11.44 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.324e-05/0.4969, allocations: 2.422 kB / 386.3 MB, free: 11.44 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002716/0.4996, allocations: 1.254 MB / 387.6 MB, free: 10.7 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.15e-06/0.4996, allocations: 0 / 387.6 MB, free: 10.7 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003197/0.5, allocations: 63.05 kB / 387.7 MB, free: 10.7 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002049/0.5002, allocations: 64.89 kB / 387.7 MB, free: 10.66 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.058e-05/0.5002, allocations: 12.77 kB / 387.7 MB, free: 10.66 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001807/0.502, allocations: 3.052 MB / 390.8 MB, free: 7.621 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.058e-06/0.5021, allocations: 2.281 kB / 390.8 MB, free: 7.621 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001184/0.5033, allocations: 0.6329 MB / 391.4 MB, free: 7.199 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001612/0.5034, allocations: 144.3 kB / 391.6 MB, free: 7.059 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.666e-05/0.5035, allocations: 7.125 kB / 391.6 MB, free: 7.055 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002734/0.5038, allocations: 17.25 kB / 391.6 MB, free: 7.051 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001046/0.5039, allocations: 22.73 kB / 391.6 MB, free: 7.047 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.171e-05/0.5039, allocations: 12.31 kB / 391.6 MB, free: 7.043 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.001015/0.5049, allocations: 433 kB / 392 MB, free: 6.855 MB / 302.1 MB Notification: Performance of sort global known variables: time 7.51e-07/0.505, allocations: 1.062 kB / 392.1 MB, free: 6.855 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.00178/0.5067, allocations: 162.2 kB / 392.2 MB, free: 6.832 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.0002218/0.507, allocations: 111.4 kB / 392.3 MB, free: 6.734 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001386/0.5084, allocations: 0.6587 MB / 393 MB, free: 6.355 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 6.112e-06/0.5084, allocations: 1.156 kB / 393 MB, free: 6.355 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006108/0.509, allocations: 366.1 kB / 393.3 MB, free: 6.086 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007276/0.5097, allocations: 76.36 kB / 393.4 MB, free: 6.043 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003719/0.5135, allocations: 1.847 MB / 395.3 MB, free: 4.922 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007233/0.5142, allocations: 1.03 MB / 396.3 MB, free: 4.211 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0003423/0.5146, allocations: 87.78 kB / 396.4 MB, free: 4.188 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001195/0.5147, allocations: 56.16 kB / 396.4 MB, free: 4.176 MB / 302.1 MB Notification: Performance of SimCode: time 7.52e-07/0.5147, allocations: 4 kB / 396.4 MB, free: 4.172 MB / 302.1 MB Notification: Performance of Templates: time 0.01276/0.5275, allocations: 5.403 MB / 401.8 MB, free: 2.215 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