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.001506/0.001506, allocations: 113.4 kB / 17.06 MB, free: 5.992 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.001843/0.001844, allocations: 200 kB / 18.01 MB, free: 5.062 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.488/1.488, allocations: 222.9 MB / 241.7 MB, free: 15.2 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001306/0.001306, allocations: 55.92 kB / 351.3 MB, free: 3.25 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4335/0.4349, allocations: 49.43 MB / 400.7 MB, free: 8.98 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.GenerationOfFMUs): time 0.009185/0.4441, allocations: 5.999 MB / 406.7 MB, free: 3.031 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.004395/0.4486, allocations: 1.656 MB / 408.4 MB, free: 1.371 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001428/0.4501, allocations: 31.81 kB / 408.4 MB, free: 1.34 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009214/0.451, allocations: 249.6 kB / 408.7 MB, free: 1.094 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001087/0.4522, allocations: 217.8 kB / 408.9 MB, free: 0.8789 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001422/0.4536, allocations: 0.4993 MB / 409.4 MB, free: 388 kB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.00161/0.4553, allocations: 1.403 MB / 410.8 MB, free: 14.97 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009266/0.4562, allocations: 0.6169 MB / 411.4 MB, free: 14.33 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006852/0.4569, allocations: 474.1 kB / 411.9 MB, free: 13.86 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007418/0.4576, allocations: 0.4973 MB / 412.4 MB, free: 13.36 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001559/0.4578, allocations: 124 kB / 412.5 MB, free: 13.24 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002558/0.4581, allocations: 132 kB / 412.6 MB, free: 13.11 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002233/0.4583, allocations: 271 kB / 412.9 MB, free: 12.84 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005421/0.4588, allocations: 0.6061 MB / 413.5 MB, free: 12.23 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001977/0.4608, allocations: 1.63 MB / 415.1 MB, free: 10.6 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.935e-06/0.4609, allocations: 0 / 415.1 MB, free: 10.6 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.796e-06/0.4609, allocations: 0 / 415.1 MB, free: 10.6 MB / 334.1 MB Notification: Performance of Transformations before backend: time 3.813e-05/0.4609, allocations: 0 / 415.1 MB, free: 10.6 MB / 334.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.002932/0.4639, allocations: 1.496 MB / 416.6 MB, free: 9.047 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.908e-05/0.4639, allocations: 11.97 kB / 416.6 MB, free: 9.035 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002766/0.4642, allocations: 151.1 kB / 416.8 MB, free: 8.887 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001531/0.4658, allocations: 0.7594 MB / 417.5 MB, free: 8.086 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.747e-05/0.4659, allocations: 90.41 kB / 417.6 MB, free: 7.996 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002022/0.4661, allocations: 119.9 kB / 417.7 MB, free: 7.879 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002398/0.4685, allocations: 1.264 MB / 419 MB, free: 6.445 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.289e-05/0.4685, allocations: 7.938 kB / 419 MB, free: 6.438 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.58e-05/0.4686, allocations: 52 kB / 419 MB, free: 6.387 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.987e-05/0.4687, allocations: 36 kB / 419.1 MB, free: 6.352 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001268/0.47, allocations: 0.689 MB / 419.8 MB, free: 5.66 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006827/0.4768, allocations: 6.798 MB / 426.6 MB, free: 14.53 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007532/0.4776, allocations: 261.3 kB / 426.8 MB, free: 14.25 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003646/0.478, allocations: 181.6 kB / 427 MB, free: 14.07 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000143/0.4781, allocations: 89.03 kB / 427.1 MB, free: 13.96 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.99e-05/0.4782, allocations: 38.56 kB / 427.1 MB, free: 13.92 MB / 350.1 MB Notification: Performance of pre-optimization done (n=27): time 2.134e-06/0.4782, allocations: 0 / 427.1 MB, free: 13.92 MB / 350.1 MB Notification: Performance of matching and sorting (n=29): time 0.002579/0.4808, allocations: 1.432 MB / 428.6 MB, free: 12.38 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.037e-05/0.4808, allocations: 81.11 kB / 428.6 MB, free: 12.29 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000823/0.4817, allocations: 0.6648 MB / 429.3 MB, free: 11.61 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.808e-05/0.4817, allocations: 29.7 kB / 429.3 MB, free: 11.57 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004769/0.4822, allocations: 0.7015 MB / 430 MB, free: 10.86 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.94e-05/0.4823, allocations: 119.1 kB / 430.1 MB, free: 10.75 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001898/0.4825, allocations: 146.5 kB / 430.3 MB, free: 10.59 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001861/0.4827, allocations: 382.8 kB / 430.7 MB, free: 10.21 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002766/0.483, allocations: 145.9 kB / 430.8 MB, free: 10.07 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000596/0.4836, allocations: 0.5585 MB / 431.4 MB, free: 9.312 MB / 350.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.00122/0.4848, allocations: 0.958 MB / 432.3 MB, free: 8.117 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.582e-06/0.4848, allocations: 4 kB / 432.3 MB, free: 8.113 MB / 350.1 MB Notification: Performance of matching and sorting (n=98) (initialization): time 0.001295/0.4861, allocations: 0.7896 MB / 433.1 MB, free: 7.312 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.494e-05/0.4862, allocations: 12 kB / 433.1 MB, free: 7.301 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.763e-05/0.4862, allocations: 16 kB / 433.1 MB, free: 7.285 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002716/0.4865, allocations: 78.34 kB / 433.2 MB, free: 7.203 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005344/0.487, allocations: 191.7 kB / 433.4 MB, free: 7.016 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002797/0.4898, allocations: 3.328 MB / 436.7 MB, free: 3.41 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004254/0.4903, allocations: 32 kB / 436.8 MB, free: 3.379 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.856e-05/0.4903, allocations: 40 kB / 436.8 MB, free: 3.34 MB / 350.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.0004649/0.4908, allocations: 277.3 kB / 437.1 MB, free: 3.059 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001212/0.4909, allocations: 79.55 kB / 437.2 MB, free: 2.98 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001233/0.491, allocations: 78.34 kB / 437.2 MB, free: 2.902 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.637e-06/0.4911, allocations: 4 kB / 437.2 MB, free: 2.898 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.316e-06/0.4911, allocations: 0 / 437.2 MB, free: 2.898 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.919e-06/0.4911, allocations: 0 / 437.2 MB, free: 2.898 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001779/0.4929, allocations: 1.253 MB / 438.5 MB, free: 1.574 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.456e-06/0.4929, allocations: 0 / 438.5 MB, free: 1.574 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003167/0.4932, allocations: 71.89 kB / 438.6 MB, free: 1.504 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001784/0.4934, allocations: 49.69 kB / 438.6 MB, free: 1.449 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.218e-05/0.4934, allocations: 8 kB / 438.6 MB, free: 1.441 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002422/0.4959, allocations: 3.057 MB / 441.7 MB, free: 14.1 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.245e-06/0.4959, allocations: 4.031 kB / 441.7 MB, free: 14.1 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009136/0.4968, allocations: 0.6433 MB / 442.3 MB, free: 13.42 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001474/0.497, allocations: 144.9 kB / 442.5 MB, free: 13.26 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.847e-05/0.497, allocations: 4 kB / 442.5 MB, free: 13.25 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002579/0.4973, allocations: 23.97 kB / 442.5 MB, free: 13.23 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.418e-05/0.4974, allocations: 27.84 kB / 442.5 MB, free: 13.2 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.245e-05/0.4974, allocations: 11.94 kB / 442.5 MB, free: 13.19 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.000616/0.498, allocations: 443 kB / 443 MB, free: 12.76 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.4981, allocations: 0 / 443 MB, free: 12.76 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001102/0.4992, allocations: 156 kB / 443.1 MB, free: 12.61 MB / 366.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.0002399/0.4994, allocations: 114.6 kB / 443.2 MB, free: 12.49 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001284/0.5007, allocations: 0.6404 MB / 443.9 MB, free: 11.83 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 6.442e-06/0.5007, allocations: 4 kB / 443.9 MB, free: 11.82 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006055/0.5013, allocations: 361.1 kB / 444.2 MB, free: 11.45 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007672/0.5021, allocations: 84.3 kB / 444.3 MB, free: 11.37 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003559/0.5057, allocations: 1.847 MB / 446.2 MB, free: 9.477 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007735/0.5065, allocations: 1.031 MB / 447.2 MB, free: 8.418 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002833/0.5068, allocations: 86.03 kB / 447.3 MB, free: 8.332 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001203/0.5069, allocations: 55.42 kB / 447.3 MB, free: 8.277 MB / 366.1 MB Notification: Performance of SimCode: time 1.282e-06/0.5069, allocations: 0 / 447.3 MB, free: 8.277 MB / 366.1 MB Notification: Performance of Templates: time 0.01627/0.5232, allocations: 5.576 MB / 452.9 MB, free: 2.738 MB / 366.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