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.001674/0.001675, allocations: 113.2 kB / 17.73 MB, free: 5.32 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.001858/0.001858, allocations: 184.2 kB / 18.66 MB, free: 4.398 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.705/1.705, allocations: 205.1 MB / 224.5 MB, free: 12.23 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.001505/0.001505, allocations: 59.84 kB / 328.5 MB, free: 3.277 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1228/0.1243, allocations: 46.61 MB / 375.2 MB, free: 4.559 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.GenerationOfFMUs): time 0.3034/0.4277, allocations: 5.944 MB / 381.1 MB, free: 9.695 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.004018/0.4318, allocations: 1.7 MB / 382.8 MB, free: 9.5 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008115/0.4326, allocations: 29.22 kB / 382.8 MB, free: 9.492 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007317/0.4334, allocations: 245.9 kB / 383.1 MB, free: 9.355 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006289/0.4341, allocations: 225.8 kB / 383.3 MB, free: 9.227 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001379/0.4355, allocations: 0.497 MB / 383.8 MB, free: 9.172 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.002242/0.4377, allocations: 1.401 MB / 385.2 MB, free: 8.453 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001105/0.4388, allocations: 0.6165 MB / 385.8 MB, free: 8.168 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009642/0.4398, allocations: 481 kB / 386.3 MB, free: 7.914 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000644/0.4405, allocations: 0.4965 MB / 386.8 MB, free: 7.617 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002132/0.4407, allocations: 122.7 kB / 386.9 MB, free: 7.617 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003059/0.441, allocations: 134.8 kB / 387 MB, free: 7.613 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002494/0.4413, allocations: 263 kB / 387.3 MB, free: 7.426 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005758/0.4418, allocations: 0.6127 MB / 387.9 MB, free: 7.004 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002596/0.4444, allocations: 1.621 MB / 389.5 MB, free: 6.371 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.235e-06/0.4445, allocations: 0 / 389.5 MB, free: 6.371 MB / 318.1 MB Notification: Performance of FrontEnd: time 3.227e-06/0.4445, allocations: 0 / 389.5 MB, free: 6.371 MB / 318.1 MB Notification: Performance of Transformations before backend: time 3.454e-05/0.4445, allocations: 0 / 389.5 MB, free: 6.371 MB / 318.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.002891/0.4474, allocations: 1.457 MB / 391 MB, free: 5.41 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 8.284e-05/0.4475, allocations: 8.719 kB / 391 MB, free: 5.41 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003285/0.4478, allocations: 144.7 kB / 391.1 MB, free: 5.336 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001968/0.4498, allocations: 0.7572 MB / 391.9 MB, free: 4.855 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001359/0.45, allocations: 87.81 kB / 392 MB, free: 4.816 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003114/0.4503, allocations: 122.2 kB / 392.1 MB, free: 4.773 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003188/0.4535, allocations: 1.264 MB / 393.3 MB, free: 3.953 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.93e-05/0.4536, allocations: 8.516 kB / 393.4 MB, free: 3.949 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001246/0.4537, allocations: 58.09 kB / 393.4 MB, free: 3.906 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.291e-05/0.4538, allocations: 31.62 kB / 393.4 MB, free: 3.906 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001706/0.4555, allocations: 0.6838 MB / 394.1 MB, free: 3.652 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008227/0.4637, allocations: 6.775 MB / 400.9 MB, free: 13.98 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00107/0.4648, allocations: 279.4 kB / 401.2 MB, free: 13.84 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005441/0.4654, allocations: 179 kB / 401.3 MB, free: 13.77 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00021/0.4656, allocations: 85.27 kB / 401.4 MB, free: 13.68 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.624e-05/0.4657, allocations: 40.47 kB / 401.5 MB, free: 13.63 MB / 334.1 MB Notification: Performance of pre-optimization done (n=27): time 3.526e-06/0.4657, allocations: 1.281 kB / 401.5 MB, free: 13.63 MB / 334.1 MB Notification: Performance of matching and sorting (n=29): time 0.002865/0.4686, allocations: 1.401 MB / 402.9 MB, free: 12.59 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.06e-05/0.4687, allocations: 80.83 kB / 403 MB, free: 12.5 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001034/0.4697, allocations: 0.662 MB / 403.6 MB, free: 12.2 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.423e-05/0.4697, allocations: 36.83 kB / 403.6 MB, free: 12.16 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005146/0.4703, allocations: 0.6785 MB / 404.3 MB, free: 11.62 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001143/0.4704, allocations: 115.9 kB / 404.4 MB, free: 11.53 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002987/0.4707, allocations: 153 kB / 404.6 MB, free: 11.44 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0002772/0.471, allocations: 384.3 kB / 405 MB, free: 11.1 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003391/0.4713, allocations: 142.5 kB / 405.1 MB, free: 11.05 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007794/0.4721, allocations: 0.552 MB / 405.7 MB, free: 10.44 MB / 334.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.001307/0.4734, allocations: 0.9466 MB / 406.6 MB, free: 9.512 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.226e-05/0.4735, allocations: 4.125 kB / 406.6 MB, free: 9.512 MB / 334.1 MB Notification: Performance of matching and sorting (n=98) (initialization): time 0.002247/0.4757, allocations: 0.7923 MB / 407.4 MB, free: 9.152 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.44e-05/0.4758, allocations: 11.44 kB / 407.4 MB, free: 9.152 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.839e-05/0.4758, allocations: 14.84 kB / 407.4 MB, free: 9.152 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004033/0.4762, allocations: 87.44 kB / 407.5 MB, free: 9.117 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009498/0.4772, allocations: 181.1 kB / 407.7 MB, free: 9.098 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003926/0.4811, allocations: 3.334 MB / 411 MB, free: 5.75 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001108/0.4823, allocations: 30.97 kB / 411.1 MB, free: 5.738 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001242/0.4824, allocations: 43.75 kB / 411.1 MB, free: 5.73 MB / 334.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.001015/0.4835, allocations: 273.5 kB / 411.4 MB, free: 5.512 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003099/0.4838, allocations: 73.78 kB / 411.4 MB, free: 5.473 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002101/0.484, allocations: 78.84 kB / 411.5 MB, free: 5.414 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.446e-06/0.484, allocations: 4.344 kB / 411.5 MB, free: 5.414 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.574e-05/0.4841, allocations: 1.125 kB / 411.5 MB, free: 5.414 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.158e-05/0.4841, allocations: 4.984 kB / 411.5 MB, free: 5.41 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003365/0.4875, allocations: 1.25 MB / 412.8 MB, free: 4.465 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.691e-06/0.4875, allocations: 0 / 412.8 MB, free: 4.465 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004784/0.488, allocations: 62.11 kB / 412.8 MB, free: 4.453 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002638/0.4882, allocations: 58.78 kB / 412.9 MB, free: 4.414 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.289e-05/0.4883, allocations: 16.02 kB / 412.9 MB, free: 4.402 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003614/0.4919, allocations: 3.059 MB / 416 MB, free: 1.27 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.662e-06/0.492, allocations: 1.375 kB / 416 MB, free: 1.27 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002059/0.494, allocations: 0.6283 MB / 416.6 MB, free: 0.8164 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003359/0.4944, allocations: 134.5 kB / 416.7 MB, free: 0.6836 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.344e-05/0.4945, allocations: 7 kB / 416.7 MB, free: 0.6797 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004105/0.4949, allocations: 21.36 kB / 416.8 MB, free: 0.668 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001894/0.4951, allocations: 31.78 kB / 416.8 MB, free: 0.6484 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.099e-05/0.4952, allocations: 14.88 kB / 416.8 MB, free: 0.6406 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.001425/0.4966, allocations: 434.7 kB / 417.2 MB, free: 400 kB / 334.1 MB Notification: Performance of sort global known variables: time 6.21e-07/0.4967, allocations: 0 / 417.2 MB, free: 400 kB / 334.1 MB Notification: Performance of remove unused functions: time 0.002132/0.4988, allocations: 159 kB / 417.4 MB, free: 380 kB / 334.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.0003751/0.4992, allocations: 105.9 kB / 417.5 MB, free: 284 kB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.002358/0.5016, allocations: 0.6627 MB / 418.1 MB, free: 15.84 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.044e-05/0.5016, allocations: 1.594 kB / 418.1 MB, free: 15.84 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007843/0.5024, allocations: 361.1 kB / 418.5 MB, free: 15.55 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000987/0.5034, allocations: 79.64 kB / 418.6 MB, free: 15.5 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006378/0.5098, allocations: 1.814 MB / 420.4 MB, free: 14.31 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001524/0.5114, allocations: 1.035 MB / 421.4 MB, free: 13.46 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0006074/0.512, allocations: 81.47 kB / 421.5 MB, free: 13.42 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002463/0.5123, allocations: 59.39 kB / 421.6 MB, free: 13.4 MB / 350.1 MB Notification: Performance of SimCode: time 2.956e-06/0.5123, allocations: 0 / 421.6 MB, free: 13.4 MB / 350.1 MB Notification: Performance of Templates: time 0.02421/0.5365, allocations: 5.579 MB / 427.1 MB, free: 9.531 MB / 350.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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.GenerationOfFMUs.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches