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.00127/0.00127, allocations: 113.6 kB / 17.69 MB, free: 5.309 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.001156/0.001156, allocations: 192 kB / 18.63 MB, free: 4.375 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.512/1.512, allocations: 222.9 MB / 242.3 MB, free: 15.18 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001746/0.001746, allocations: 43.41 kB / 302.1 MB, free: 5.176 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1794/0.1811, allocations: 49.44 MB / 351.5 MB, free: 3.711 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.GenerationOfFMUs): time 0.009383/0.1906, allocations: 5.993 MB / 357.5 MB, free: 13.69 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.004094/0.1947, allocations: 1.652 MB / 359.1 MB, free: 12.03 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007644/0.1955, allocations: 35.81 kB / 359.2 MB, free: 12 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007186/0.1962, allocations: 249.6 kB / 359.4 MB, free: 11.75 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006692/0.197, allocations: 217.8 kB / 359.6 MB, free: 11.54 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001457/0.1985, allocations: 0.4993 MB / 360.1 MB, free: 11.04 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001784/0.2003, allocations: 1.395 MB / 361.5 MB, free: 9.637 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001078/0.2014, allocations: 0.6169 MB / 362.1 MB, free: 8.996 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007796/0.2021, allocations: 478.1 kB / 362.6 MB, free: 8.527 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005953/0.2028, allocations: 0.4934 MB / 363.1 MB, free: 8.031 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001593/0.2029, allocations: 124 kB / 363.2 MB, free: 7.91 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002605/0.2032, allocations: 136 kB / 363.4 MB, free: 7.777 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002362/0.2035, allocations: 267 kB / 363.6 MB, free: 7.516 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005851/0.204, allocations: 0.6139 MB / 364.2 MB, free: 6.898 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001713/0.2058, allocations: 1.592 MB / 365.8 MB, free: 5.301 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.564e-06/0.2058, allocations: 0 / 365.8 MB, free: 5.301 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.472e-06/0.2058, allocations: 0 / 365.8 MB, free: 5.301 MB / 302.1 MB Notification: Performance of Transformations before backend: time 2.847e-05/0.2058, allocations: 0 / 365.8 MB, free: 5.301 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.002518/0.2084, allocations: 1.462 MB / 367.3 MB, free: 3.785 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.777e-05/0.2084, allocations: 11.97 kB / 367.3 MB, free: 3.773 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002188/0.2087, allocations: 142.2 kB / 367.4 MB, free: 3.633 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001315/0.21, allocations: 0.755 MB / 368.2 MB, free: 2.836 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.26e-05/0.2101, allocations: 90.41 kB / 368.3 MB, free: 2.746 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001591/0.2102, allocations: 123.9 kB / 368.4 MB, free: 2.625 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001985/0.2122, allocations: 1.264 MB / 369.7 MB, free: 1.191 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.708e-05/0.2123, allocations: 15.94 kB / 369.7 MB, free: 1.176 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.897e-05/0.2124, allocations: 48 kB / 369.7 MB, free: 1.129 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.195e-05/0.2124, allocations: 32 kB / 369.8 MB, free: 1.098 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001256/0.2137, allocations: 0.689 MB / 370.5 MB, free: 416 kB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2737/0.4874, allocations: 6.771 MB / 377.2 MB, free: 20.09 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007584/0.4882, allocations: 272.4 kB / 377.5 MB, free: 19.96 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003815/0.4886, allocations: 179.1 kB / 377.7 MB, free: 19.9 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001223/0.4888, allocations: 84.48 kB / 377.7 MB, free: 19.8 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.848e-05/0.4888, allocations: 38.73 kB / 377.8 MB, free: 19.76 MB / 302.1 MB Notification: Performance of pre-optimization done (n=27): time 2.695e-06/0.4888, allocations: 0 / 377.8 MB, free: 19.76 MB / 302.1 MB Notification: Performance of matching and sorting (n=29): time 0.002438/0.4912, allocations: 1.404 MB / 379.2 MB, free: 18.73 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.128e-05/0.4913, allocations: 81 kB / 379.3 MB, free: 18.64 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008948/0.4922, allocations: 0.6537 MB / 379.9 MB, free: 18.35 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.555e-05/0.4922, allocations: 31.73 kB / 380 MB, free: 18.32 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004775/0.4927, allocations: 0.6864 MB / 380.6 MB, free: 17.78 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.166e-05/0.4928, allocations: 111.1 kB / 380.7 MB, free: 17.7 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002322/0.4931, allocations: 147.4 kB / 380.9 MB, free: 17.61 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001756/0.4932, allocations: 391.1 kB / 381.3 MB, free: 17.26 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003033/0.4936, allocations: 143.3 kB / 381.4 MB, free: 17.22 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005667/0.4941, allocations: 0.5509 MB / 382 MB, free: 16.62 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.001131/0.4953, allocations: 0.9559 MB / 382.9 MB, free: 15.68 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.177e-06/0.4953, allocations: 4.125 kB / 382.9 MB, free: 15.68 MB / 302.1 MB Notification: Performance of matching and sorting (n=98) (initialization): time 0.001475/0.4968, allocations: 0.7991 MB / 383.7 MB, free: 15.32 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.698e-05/0.4968, allocations: 12.27 kB / 383.7 MB, free: 15.32 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.738e-05/0.4969, allocations: 15.88 kB / 383.8 MB, free: 15.32 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003026/0.4972, allocations: 87.66 kB / 383.8 MB, free: 15.28 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000598/0.4978, allocations: 176.7 kB / 384 MB, free: 15.27 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002285/0.5001, allocations: 3.332 MB / 387.3 MB, free: 12.02 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004084/0.5005, allocations: 31.64 kB / 387.4 MB, free: 12 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.81e-05/0.5006, allocations: 47.25 kB / 387.4 MB, free: 12 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 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.0004621/0.501, allocations: 269.4 kB / 387.7 MB, free: 11.79 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001621/0.5012, allocations: 78.81 kB / 387.8 MB, free: 11.74 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000135/0.5013, allocations: 70.05 kB / 387.8 MB, free: 11.7 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.351e-06/0.5013, allocations: 3.906 kB / 387.8 MB, free: 11.7 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.551e-05/0.5014, allocations: 5.219 kB / 387.8 MB, free: 11.7 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.045e-06/0.5014, allocations: 7.172 kB / 387.8 MB, free: 11.69 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002029/0.5034, allocations: 1.244 MB / 389.1 MB, free: 10.96 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.17e-06/0.5034, allocations: 1.938 kB / 389.1 MB, free: 10.96 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003462/0.5038, allocations: 64.22 kB / 389.2 MB, free: 10.96 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001659/0.504, allocations: 56.48 kB / 389.2 MB, free: 10.93 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.766e-05/0.504, allocations: 16.31 kB / 389.2 MB, free: 10.92 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001773/0.5058, allocations: 3.047 MB / 392.3 MB, free: 7.887 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.799e-06/0.5058, allocations: 7 kB / 392.3 MB, free: 7.883 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000972/0.5068, allocations: 0.6253 MB / 392.9 MB, free: 7.469 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001526/0.5069, allocations: 140.1 kB / 393 MB, free: 7.332 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.742e-05/0.507, allocations: 11 kB / 393 MB, free: 7.324 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002559/0.5073, allocations: 12.56 kB / 393.1 MB, free: 7.324 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001104/0.5074, allocations: 27.28 kB / 393.1 MB, free: 7.316 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.393e-05/0.5074, allocations: 16.19 kB / 393.1 MB, free: 7.309 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0007919/0.5082, allocations: 433.4 kB / 393.5 MB, free: 7.121 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.2e-07/0.5082, allocations: 0 / 393.5 MB, free: 7.121 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.001282/0.5095, allocations: 158.9 kB / 393.7 MB, free: 7.102 MB / 302.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.0001934/0.5097, allocations: 112 kB / 393.8 MB, free: 7.004 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001426/0.5112, allocations: 0.6573 MB / 394.4 MB, free: 6.625 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 4.158e-06/0.5112, allocations: 0 / 394.4 MB, free: 6.625 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005487/0.5117, allocations: 361.9 kB / 394.8 MB, free: 6.355 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000622/0.5124, allocations: 87.62 kB / 394.9 MB, free: 6.309 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003526/0.5159, allocations: 1.811 MB / 396.7 MB, free: 5.23 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008037/0.5167, allocations: 1.04 MB / 397.7 MB, free: 4.512 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0002918/0.517, allocations: 81.97 kB / 397.8 MB, free: 4.492 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001307/0.5172, allocations: 59.36 kB / 397.9 MB, free: 4.477 MB / 302.1 MB Notification: Performance of SimCode: time 9.62e-07/0.5172, allocations: 0 / 397.9 MB, free: 4.477 MB / 302.1 MB Notification: Performance of Templates: time 0.01294/0.5301, allocations: 5.414 MB / 403.3 MB, free: 2.191 MB / 302.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 -s cvode -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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/GenerationOfFMUs/GenerationOfFMUs.csv","/var/lib/jenkins1/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