Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Analog.Examples.GenerationOfFMUs.conf.json loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 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(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001307/0.001307, allocations: 200 kB / 17.43 MB, free: 4.277 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.533/1.533, allocations: 229.5 MB / 247.7 MB, free: 6.301 MB / 202.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009436/0.0009438, allocations: 103.5 kB / 299.9 MB, free: 5.32 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002768/0.0002768, allocations: 4 kB / 360.6 MB, free: 8.457 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.314/0.3143, allocations: 51.42 MB / 412.1 MB, free: 25.89 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.GenerationOfFMUs): time 0.004877/0.3192, allocations: 5.168 MB / 417.2 MB, free: 20.7 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.003941/0.3232, allocations: 2.232 MB / 419.5 MB, free: 18.32 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006605/0.3239, allocations: 31.88 kB / 419.5 MB, free: 18.29 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0004015/0.3243, allocations: 186.5 kB / 419.7 MB, free: 18.11 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0004279/0.3248, allocations: 166.5 kB / 419.8 MB, free: 17.95 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007758/0.3256, allocations: 451.6 kB / 420.3 MB, free: 17.5 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0008537/0.3264, allocations: 1.298 MB / 421.6 MB, free: 16.2 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006281/0.3271, allocations: 0.5413 MB / 422.1 MB, free: 15.64 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003872/0.3275, allocations: 374.1 kB / 422.5 MB, free: 15.27 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003113/0.3278, allocations: 413.3 kB / 422.9 MB, free: 14.86 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 7.728e-05/0.3279, allocations: 52 kB / 422.9 MB, free: 14.81 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001827/0.3281, allocations: 68 kB / 423 MB, free: 14.75 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001155/0.3282, allocations: 187 kB / 423.2 MB, free: 14.56 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003145/0.3285, allocations: 0.5375 MB / 423.7 MB, free: 14.02 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0008389/0.3293, allocations: 1.41 MB / 425.1 MB, free: 12.6 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.923e-06/0.3294, allocations: 0 / 425.1 MB, free: 12.6 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.863e-06/0.3294, allocations: 0 / 425.1 MB, free: 12.6 MB / 298.7 MB Notification: Performance of Transformations before backend: time 1.42e-05/0.3294, allocations: 0 / 425.1 MB, free: 12.6 MB / 298.7 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.001465/0.3309, allocations: 1.24 MB / 426.4 MB, free: 11.31 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.713e-05/0.3309, allocations: 15.97 kB / 426.4 MB, free: 11.29 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000329/0.3312, allocations: 170.3 kB / 426.6 MB, free: 11.12 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000813/0.3321, allocations: 0.7159 MB / 427.3 MB, free: 10.36 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.749e-05/0.3321, allocations: 90.41 kB / 427.4 MB, free: 10.27 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001204/0.3323, allocations: 120 kB / 427.5 MB, free: 10.16 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001573/0.3338, allocations: 1.264 MB / 428.7 MB, free: 8.723 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.818e-05/0.3339, allocations: 3.938 kB / 428.7 MB, free: 8.719 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.612e-05/0.334, allocations: 52 kB / 428.8 MB, free: 8.668 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.299e-05/0.334, allocations: 32 kB / 428.8 MB, free: 8.637 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001029/0.335, allocations: 0.6929 MB / 429.5 MB, free: 7.945 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004211/0.3393, allocations: 6.828 MB / 436.3 MB, free: 0.7812 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005738/0.3398, allocations: 277.5 kB / 436.6 MB, free: 0.4922 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003136/0.3402, allocations: 185.9 kB / 436.8 MB, free: 312 kB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001414/0.3403, allocations: 89.03 kB / 436.9 MB, free: 204 kB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.157e-05/0.3404, allocations: 38.56 kB / 436.9 MB, free: 156 kB / 298.7 MB Notification: Performance of pre-optimization done (n=27): time 2.034e-06/0.3404, allocations: 0 / 436.9 MB, free: 156 kB / 298.7 MB Notification: Performance of matching and sorting (n=29): time 0.002356/0.3427, allocations: 1.415 MB / 438.3 MB, free: 14.62 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.803e-05/0.3428, allocations: 81.11 kB / 438.4 MB, free: 14.53 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007634/0.3436, allocations: 0.6491 MB / 439.1 MB, free: 13.87 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 2.84e-05/0.3436, allocations: 29.7 kB / 439.1 MB, free: 13.83 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005191/0.3441, allocations: 0.6875 MB / 439.8 MB, free: 13.13 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.675e-05/0.3442, allocations: 114.5 kB / 439.9 MB, free: 13.02 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.589e-05/0.3442, allocations: 16 kB / 439.9 MB, free: 13 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0002003/0.3445, allocations: 386.8 kB / 440.3 MB, free: 12.62 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002815/0.3447, allocations: 141.9 kB / 440.4 MB, free: 12.48 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005897/0.3453, allocations: 0.5506 MB / 441 MB, free: 11.72 MB / 314.7 MB Warning: It was not possible to determine if the initialization problem is consistent, because of not evaluable parameters/start values during compile time: inverseCapacitor1.capacitor.v = $START.inverseCapacitor1.capacitor.v ($START.directCapacitor1.currentToVoltage.y = $START.inverseCapacitor1.capacitor.v) Warning: It was not possible to determine if the initialization problem is consistent, because of not evaluable parameters/start values during compile time: inverseInductor3.inductor.i = $START.inverseInductor3.inductor.i ($START.directInductor3.currentToVoltage.y = $START.inverseInductor3.inductor.i) Notification: Performance of analyzeInitialSystem (initialization): time 0.001204/0.3466, allocations: 0.9717 MB / 441.9 MB, free: 10.52 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.67e-06/0.3466, allocations: 4 kB / 441.9 MB, free: 10.51 MB / 314.7 MB Notification: Performance of matching and sorting (n=98) (initialization): time 0.001219/0.3478, allocations: 0.7992 MB / 442.7 MB, free: 9.699 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.486e-05/0.3478, allocations: 8 kB / 442.8 MB, free: 9.691 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.729e-05/0.3479, allocations: 23.92 kB / 442.8 MB, free: 9.668 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002731/0.3481, allocations: 81.69 kB / 442.9 MB, free: 9.582 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005267/0.3487, allocations: 179.7 kB / 443 MB, free: 9.406 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002435/0.3511, allocations: 2.982 MB / 446 MB, free: 6.156 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003543/0.3515, allocations: 35.98 kB / 446.1 MB, free: 6.121 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.769e-05/0.3515, allocations: 48.06 kB / 446.1 MB, free: 6.074 MB / 314.7 MB Warning: The initial conditions are over specified. The following 2 initial equations are redundant, so they are removed from the initialization sytem: inverseCapacitor1.capacitor.v = $START.inverseCapacitor1.capacitor.v inverseInductor3.inductor.i = $START.inverseInductor3.inductor.i. 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.000424/0.352, allocations: 273.3 kB / 446.4 MB, free: 5.797 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001065/0.3521, allocations: 79.05 kB / 446.4 MB, free: 5.719 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001026/0.3522, allocations: 70.36 kB / 446.5 MB, free: 5.648 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.519e-06/0.3522, allocations: 4 kB / 446.5 MB, free: 5.645 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.959e-06/0.3522, allocations: 4 kB / 446.5 MB, free: 5.641 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.154e-06/0.3522, allocations: 3.984 kB / 446.5 MB, free: 5.637 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001712/0.354, allocations: 1.251 MB / 447.8 MB, free: 4.312 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.551e-06/0.354, allocations: 7.984 kB / 447.8 MB, free: 4.305 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003129/0.3543, allocations: 67.91 kB / 447.8 MB, free: 4.238 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001525/0.3545, allocations: 61.55 kB / 447.9 MB, free: 4.172 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.141e-05/0.3545, allocations: 8 kB / 447.9 MB, free: 4.164 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002044/0.3565, allocations: 2.787 MB / 450.7 MB, free: 1.109 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.703e-06/0.3566, allocations: 0 / 450.7 MB, free: 1.109 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008444/0.3574, allocations: 0.6429 MB / 451.3 MB, free: 440 kB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001109/0.3575, allocations: 136.2 kB / 451.5 MB, free: 284 kB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.179e-05/0.3576, allocations: 16.05 kB / 451.5 MB, free: 268 kB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002383/0.3578, allocations: 12 kB / 451.5 MB, free: 256 kB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.724e-05/0.3579, allocations: 31.89 kB / 451.5 MB, free: 224 kB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.807e-05/0.3579, allocations: 12 kB / 451.5 MB, free: 212 kB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0005017/0.3584, allocations: 427 kB / 452 MB, free: 15.8 MB / 330.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.3584, allocations: 0 / 452 MB, free: 15.8 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0007984/0.3593, allocations: 160 kB / 452.1 MB, free: 15.64 MB / 330.7 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.0001606/0.3594, allocations: 115.2 kB / 452.2 MB, free: 15.52 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.00106/0.3605, allocations: 0.6576 MB / 452.9 MB, free: 14.84 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.514e-06/0.3605, allocations: 0 / 452.9 MB, free: 14.84 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000474/0.361, allocations: 369.3 kB / 453.3 MB, free: 14.45 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005855/0.3616, allocations: 72.94 kB / 453.3 MB, free: 14.38 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003273/0.3649, allocations: 2.443 MB / 455.8 MB, free: 11.89 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006893/0.3656, allocations: 1.034 MB / 456.8 MB, free: 10.83 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.000287/0.3659, allocations: 97.88 kB / 456.9 MB, free: 10.73 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001112/0.366, allocations: 55.42 kB / 457 MB, free: 10.68 MB / 330.7 MB Notification: Performance of SimCode: time 4.5e-07/0.366, allocations: 0 / 457 MB, free: 10.68 MB / 330.7 MB Notification: Performance of Templates: time 0.01127/0.3773, allocations: 5.12 MB / 462.1 MB, free: 5.578 MB / 330.7 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