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.001494/0.001494, allocations: 112 kB / 17.07 MB, free: 5.945 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.001898/0.001898, allocations: 196 kB / 18.01 MB, free: 5.035 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.687/1.687, allocations: 222.9 MB / 241.7 MB, free: 15.15 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001052/0.001052, allocations: 47.94 kB / 351.3 MB, free: 3.266 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4049/0.406, allocations: 49.44 MB / 400.7 MB, free: 8.766 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.GenerationOfFMUs): time 0.007167/0.4132, allocations: 5.993 MB / 406.7 MB, free: 2.887 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.003127/0.4164, allocations: 1.652 MB / 408.4 MB, free: 1.23 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006913/0.4171, allocations: 31.88 kB / 408.4 MB, free: 1.199 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005465/0.4176, allocations: 249.6 kB / 408.7 MB, free: 0.9531 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000509/0.4182, allocations: 225.7 kB / 408.9 MB, free: 0.7305 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001071/0.4193, allocations: 0.4955 MB / 409.4 MB, free: 240 kB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.001268/0.4205, allocations: 1.403 MB / 410.8 MB, free: 14.82 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008064/0.4214, allocations: 0.6169 MB / 411.4 MB, free: 14.18 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004912/0.4219, allocations: 474.1 kB / 411.9 MB, free: 13.71 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004737/0.4223, allocations: 0.4973 MB / 412.4 MB, free: 13.21 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001489/0.4225, allocations: 128 kB / 412.5 MB, free: 13.09 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002252/0.4227, allocations: 135.9 kB / 412.6 MB, free: 12.96 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002119/0.423, allocations: 267 kB / 412.9 MB, free: 12.7 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005125/0.4235, allocations: 0.61 MB / 413.5 MB, free: 12.08 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001497/0.425, allocations: 1.616 MB / 415.1 MB, free: 10.46 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.364e-06/0.425, allocations: 4 kB / 415.1 MB, free: 10.46 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.933e-06/0.425, allocations: 3.938 kB / 415.1 MB, free: 10.46 MB / 334.1 MB Notification: Performance of Transformations before backend: time 3.084e-05/0.425, allocations: 0 / 415.1 MB, free: 10.46 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.002153/0.4272, allocations: 1.461 MB / 416.6 MB, free: 8.945 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.655e-05/0.4273, allocations: 12.03 kB / 416.6 MB, free: 8.934 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001978/0.4275, allocations: 138.3 kB / 416.7 MB, free: 8.797 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001093/0.4286, allocations: 0.755 MB / 417.5 MB, free: 8 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.774e-05/0.4287, allocations: 90.34 kB / 417.6 MB, free: 7.91 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001534/0.4288, allocations: 123.9 kB / 417.7 MB, free: 7.789 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001836/0.4307, allocations: 1.268 MB / 418.9 MB, free: 6.352 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.506e-05/0.4307, allocations: 3.938 kB / 419 MB, free: 6.348 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.83e-05/0.4308, allocations: 56 kB / 419 MB, free: 6.293 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.755e-05/0.4308, allocations: 32 kB / 419 MB, free: 6.262 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001261/0.4321, allocations: 0.689 MB / 419.7 MB, free: 5.57 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00569/0.4378, allocations: 6.773 MB / 426.5 MB, free: 14.46 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006505/0.4385, allocations: 273.3 kB / 426.8 MB, free: 14.18 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003491/0.4388, allocations: 173.6 kB / 426.9 MB, free: 14 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001309/0.439, allocations: 89.09 kB / 427 MB, free: 13.89 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.673e-05/0.439, allocations: 38.56 kB / 427.1 MB, free: 13.85 MB / 350.1 MB Notification: Performance of pre-optimization done (n=27): time 2.084e-06/0.439, allocations: 0 / 427.1 MB, free: 13.85 MB / 350.1 MB Notification: Performance of matching and sorting (n=29): time 0.002378/0.4414, allocations: 1.396 MB / 428.5 MB, free: 12.34 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.044e-05/0.4415, allocations: 81.11 kB / 428.5 MB, free: 12.25 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007315/0.4422, allocations: 0.6568 MB / 429.2 MB, free: 11.58 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.811e-05/0.4423, allocations: 33.7 kB / 429.2 MB, free: 11.54 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004354/0.4427, allocations: 0.6837 MB / 429.9 MB, free: 10.84 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.144e-05/0.4428, allocations: 118.4 kB / 430 MB, free: 10.73 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000177/0.443, allocations: 146.4 kB / 430.2 MB, free: 10.57 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001749/0.4432, allocations: 386.8 kB / 430.5 MB, free: 10.19 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002721/0.4435, allocations: 149.9 kB / 430.7 MB, free: 10.04 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005578/0.444, allocations: 0.5546 MB / 431.2 MB, free: 9.289 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.001136/0.4452, allocations: 0.9541 MB / 432.2 MB, free: 8.098 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.061e-06/0.4452, allocations: 4 kB / 432.2 MB, free: 8.094 MB / 350.1 MB Notification: Performance of matching and sorting (n=98) (initialization): time 0.001227/0.4464, allocations: 0.8009 MB / 433 MB, free: 7.285 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.23e-05/0.4465, allocations: 12 kB / 433 MB, free: 7.273 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.54e-05/0.4465, allocations: 16.12 kB / 433 MB, free: 7.258 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002581/0.4467, allocations: 77.69 kB / 433.1 MB, free: 7.176 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005327/0.4473, allocations: 187.7 kB / 433.3 MB, free: 6.992 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002632/0.4499, allocations: 3.324 MB / 436.6 MB, free: 3.391 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003841/0.4503, allocations: 32 kB / 436.6 MB, free: 3.359 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.841e-05/0.4504, allocations: 44 kB / 436.7 MB, free: 3.316 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.0004105/0.4508, allocations: 279.1 kB / 437 MB, free: 3.035 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001184/0.4509, allocations: 75.09 kB / 437 MB, free: 2.961 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001086/0.451, allocations: 70.41 kB / 437.1 MB, free: 2.891 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.967e-06/0.451, allocations: 4 kB / 437.1 MB, free: 2.887 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.826e-06/0.4511, allocations: 0 / 437.1 MB, free: 2.887 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.062e-06/0.4511, allocations: 4 kB / 437.1 MB, free: 2.883 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001778/0.4529, allocations: 1.239 MB / 438.4 MB, free: 1.57 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.76e-06/0.4529, allocations: 4 kB / 438.4 MB, free: 1.566 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003055/0.4532, allocations: 67.89 kB / 438.4 MB, free: 1.5 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001548/0.4534, allocations: 57.86 kB / 438.5 MB, free: 1.438 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.466e-05/0.4534, allocations: 8 kB / 438.5 MB, free: 1.43 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002197/0.4556, allocations: 3.061 MB / 441.5 MB, free: 14.09 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.994e-06/0.4556, allocations: 0 / 441.5 MB, free: 14.09 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008668/0.4565, allocations: 0.6351 MB / 442.2 MB, free: 13.41 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001219/0.4566, allocations: 144.2 kB / 442.3 MB, free: 13.25 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.629e-05/0.4567, allocations: 8 kB / 442.3 MB, free: 13.25 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002658/0.4569, allocations: 19.92 kB / 442.4 MB, free: 13.23 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.143e-05/0.457, allocations: 31.91 kB / 442.4 MB, free: 13.2 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.519e-05/0.4571, allocations: 4 kB / 442.4 MB, free: 13.19 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0004849/0.4575, allocations: 439 kB / 442.8 MB, free: 12.77 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.4575, allocations: 0 / 442.8 MB, free: 12.77 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0008869/0.4584, allocations: 156 kB / 443 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.0001598/0.4586, allocations: 115.1 kB / 443.1 MB, free: 12.49 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001079/0.4597, allocations: 0.6584 MB / 443.7 MB, free: 11.81 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.675e-06/0.4597, allocations: 0 / 443.7 MB, free: 11.81 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004578/0.4602, allocations: 361.5 kB / 444.1 MB, free: 11.43 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005492/0.4607, allocations: 71.42 kB / 444.2 MB, free: 11.37 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002897/0.4636, allocations: 1.814 MB / 446 MB, free: 9.512 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006758/0.4643, allocations: 1.038 MB / 447 MB, free: 8.445 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002386/0.4646, allocations: 86.02 kB / 447.1 MB, free: 8.359 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001043/0.4647, allocations: 55.42 kB / 447.2 MB, free: 8.305 MB / 366.1 MB Notification: Performance of SimCode: time 8.82e-07/0.4647, allocations: 0 / 447.2 MB, free: 8.305 MB / 366.1 MB Notification: Performance of Templates: time 0.01214/0.4769, allocations: 5.569 MB / 452.7 MB, free: 2.766 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