Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Analog.Examples.GenerationOfFMUs.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_Modelica.Electrical.Analog.Examples.GenerationOfFMUs") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001316/0.001316, allocations: 98.83 kB / 16.99 MB, free: 5.941 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001505/0.001506, allocations: 206.6 kB / 17.9 MB, free: 5.594 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.509/1.509, allocations: 227.2 MB / 245.9 MB, free: 10.35 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003037/0.0003043, allocations: 4 kB / 306.6 MB, free: 1.453 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1479/0.1482, allocations: 51.49 MB / 358.1 MB, free: 13.97 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.GenerationOfFMUs): time 0.008507/0.1567, allocations: 4.963 MB / 363 MB, free: 8.988 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.005267/0.1621, allocations: 1.656 MB / 364.7 MB, free: 7.328 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001688/0.1638, allocations: 31.81 kB / 364.7 MB, free: 7.297 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008384/0.1647, allocations: 130.8 kB / 364.8 MB, free: 7.168 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00169/0.1664, allocations: 263.1 kB / 365.1 MB, free: 6.91 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001632/0.1681, allocations: 331.5 kB / 365.4 MB, free: 6.586 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.002257/0.1704, allocations: 0.8895 MB / 366.3 MB, free: 5.695 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007798/0.1712, allocations: 465.9 kB / 366.8 MB, free: 5.223 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006134/0.1718, allocations: 354.4 kB / 367.1 MB, free: 4.875 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003909/0.1722, allocations: 393.7 kB / 367.5 MB, free: 4.488 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 8.557e-05/0.1723, allocations: 52 kB / 367.5 MB, free: 4.438 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001806/0.1725, allocations: 60 kB / 367.6 MB, free: 4.379 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001638/0.1727, allocations: 175.2 kB / 367.8 MB, free: 4.207 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002172/0.1729, allocations: 245 kB / 368 MB, free: 3.961 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001071/0.174, allocations: 1.157 MB / 369.2 MB, free: 2.801 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.506e-06/0.174, allocations: 0 / 369.2 MB, free: 2.801 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.154e-06/0.174, allocations: 0 / 369.2 MB, free: 2.801 MB / 302.1 MB Notification: Performance of Transformations before backend: time 2.837e-05/0.174, allocations: 0 / 369.2 MB, free: 2.801 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.001974/0.176, allocations: 1.251 MB / 370.4 MB, free: 1.5 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.223e-05/0.1761, allocations: 8.031 kB / 370.4 MB, free: 1.492 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003986/0.1765, allocations: 166.3 kB / 370.6 MB, free: 1.328 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00107/0.1775, allocations: 0.6969 MB / 371.3 MB, free: 0.5898 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.661e-05/0.1776, allocations: 86.41 kB / 371.4 MB, free: 0.5039 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001382/0.1778, allocations: 116 kB / 371.5 MB, free: 400 kB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.2458/0.4236, allocations: 1.25 MB / 372.7 MB, free: 18.44 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.256e-05/0.4237, allocations: 7.812 kB / 372.7 MB, free: 18.44 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001029/0.4238, allocations: 57.17 kB / 372.8 MB, free: 18.44 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.545e-05/0.4239, allocations: 32.44 kB / 372.8 MB, free: 18.44 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001504/0.4254, allocations: 0.6842 MB / 373.5 MB, free: 18.39 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006062/0.4314, allocations: 6.822 MB / 380.3 MB, free: 13.1 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006616/0.4321, allocations: 272.1 kB / 380.6 MB, free: 12.97 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001374/0.4323, allocations: 93.25 kB / 380.7 MB, free: 12.87 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.941e-05/0.4323, allocations: 32.55 kB / 380.7 MB, free: 12.83 MB / 302.1 MB Notification: Performance of pre-optimization done (n=27): time 2.285e-06/0.4323, allocations: 1.375 kB / 380.7 MB, free: 12.83 MB / 302.1 MB Notification: Performance of matching and sorting (n=29): time 0.002343/0.4347, allocations: 1.418 MB / 382.1 MB, free: 11.8 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.401e-05/0.4347, allocations: 84.5 kB / 382.2 MB, free: 11.7 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007734/0.4355, allocations: 0.6485 MB / 382.9 MB, free: 11.41 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.263e-05/0.4355, allocations: 30.92 kB / 382.9 MB, free: 11.38 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003769/0.4359, allocations: 0.6845 MB / 383.6 MB, free: 10.84 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.988e-05/0.436, allocations: 115 kB / 383.7 MB, free: 10.75 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.232e-05/0.436, allocations: 19.53 kB / 383.7 MB, free: 10.74 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.000124/0.4362, allocations: 387.1 kB / 384.1 MB, free: 10.39 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000276/0.4365, allocations: 148.8 kB / 384.3 MB, free: 10.34 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004409/0.4369, allocations: 0.5475 MB / 384.8 MB, free: 9.734 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.0005801/0.4375, allocations: 451.7 kB / 385.2 MB, free: 9.414 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.933e-06/0.4375, allocations: 4.812 kB / 385.2 MB, free: 9.414 MB / 302.1 MB Notification: Performance of matching and sorting (n=98) (initialization): time 0.001297/0.4388, allocations: 0.807 MB / 386.1 MB, free: 9.047 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.608e-05/0.4389, allocations: 11.19 kB / 386.1 MB, free: 9.047 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.769e-05/0.4389, allocations: 14.53 kB / 386.1 MB, free: 9.047 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002537/0.4391, allocations: 80.92 kB / 386.2 MB, free: 9.02 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006204/0.4398, allocations: 186.9 kB / 386.3 MB, free: 8.996 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00223/0.442, allocations: 2.997 MB / 389.3 MB, free: 6.086 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005132/0.4425, allocations: 33.27 kB / 389.4 MB, free: 6.074 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.865e-05/0.4426, allocations: 43.66 kB / 389.4 MB, free: 6.066 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 (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 4,(1,100.0%) 3} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0004836/0.4431, allocations: 269 kB / 389.7 MB, free: 5.855 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001139/0.4432, allocations: 74.02 kB / 389.7 MB, free: 5.816 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001197/0.4433, allocations: 79 kB / 389.8 MB, free: 5.766 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.96e-06/0.4433, allocations: 7.391 kB / 389.8 MB, free: 5.766 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.864e-05/0.4434, allocations: 3.781 kB / 389.8 MB, free: 5.766 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.754e-06/0.4434, allocations: 2.016 kB / 389.8 MB, free: 5.766 MB / 302.1 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002272/0.4457, allocations: 1.357 MB / 391.2 MB, free: 4.902 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.719e-06/0.4457, allocations: 1.094 kB / 391.2 MB, free: 4.902 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003671/0.4461, allocations: 70.19 kB / 391.3 MB, free: 4.895 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000196/0.4463, allocations: 52.55 kB / 391.3 MB, free: 4.871 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.675e-05/0.4463, allocations: 7.406 kB / 391.3 MB, free: 4.867 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001799/0.4481, allocations: 2.795 MB / 394.1 MB, free: 2.082 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.464e-06/0.4481, allocations: 1.469 kB / 394.1 MB, free: 2.082 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009888/0.4491, allocations: 0.6793 MB / 394.8 MB, free: 1.613 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001349/0.4493, allocations: 134.8 kB / 394.9 MB, free: 1.48 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.375e-05/0.4493, allocations: 7.719 kB / 394.9 MB, free: 1.477 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002522/0.4496, allocations: 19.14 kB / 395 MB, free: 1.473 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.676e-05/0.4497, allocations: 27.67 kB / 395 MB, free: 1.465 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.291e-05/0.4497, allocations: 14.95 kB / 395 MB, free: 1.457 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.00063/0.4503, allocations: 426.8 kB / 395.4 MB, free: 1.27 MB / 302.1 MB Notification: Performance of sort global known variables: time 2e-07/0.4503, allocations: 0 / 395.4 MB, free: 1.27 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.001061/0.4514, allocations: 159.7 kB / 395.6 MB, free: 1.25 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * 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 (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 3,(1,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001465/0.4516, allocations: 107.3 kB / 395.7 MB, free: 1.152 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001228/0.4528, allocations: 0.6541 MB / 396.3 MB, free: 0.7812 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 4.538e-06/0.4528, allocations: 1.375 kB / 396.3 MB, free: 0.7812 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004812/0.4533, allocations: 371.9 kB / 396.7 MB, free: 0.5078 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004048/0.4537, allocations: 79.17 kB / 396.8 MB, free: 476 kB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003671/0.4574, allocations: 2.305 MB / 399.1 MB, free: 14.95 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000853/0.4583, allocations: 1.06 MB / 400.1 MB, free: 14.23 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0003574/0.4587, allocations: 89.16 kB / 400.2 MB, free: 14.21 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001231/0.4588, allocations: 58.83 kB / 400.3 MB, free: 14.2 MB / 318.1 MB Notification: Performance of SimCode: time 8.12e-07/0.4588, allocations: 0 / 400.3 MB, free: 14.2 MB / 318.1 MB Notification: Performance of Templates: time 0.01197/0.4708, allocations: 5.003 MB / 405.3 MB, free: 11.96 MB / 318.1 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Analog.Examples.GenerationOfFMUs.makefile (rm -f Modelica_trunk_Modelica.Electrical.Analog.Examples.GenerationOfFMUs.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Analog.Examples.GenerationOfFMUs.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Analog.Examples.GenerationOfFMUs.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.GenerationOfFMUs.sim & ./Modelica_trunk_Modelica.Electrical.Analog.Examples.GenerationOfFMUs -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Analog.Examples.GenerationOfFMUs.pipe 2>&1) diffSimulationResults("Modelica_trunk_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","../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.GenerationOfFMUs.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches