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.001063/0.001063, allocations: 101 kB / 17.59 MB, free: 5.426 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.001052/0.001052, allocations: 187.3 kB / 18.51 MB, free: 4.504 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.312/1.312, allocations: 222.9 MB / 242.2 MB, free: 15.27 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001121/0.001121, allocations: 44.53 kB / 301.3 MB, free: 5.914 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09442/0.09556, allocations: 49.45 MB / 350.7 MB, free: 4.457 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.GenerationOfFMUs): time 0.00751/0.1031, allocations: 5.981 MB / 356.7 MB, free: 14.44 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.00433/0.1075, allocations: 1.652 MB / 358.4 MB, free: 12.78 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001424/0.109, allocations: 31.88 kB / 358.4 MB, free: 12.75 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009896/0.11, allocations: 245.6 kB / 358.6 MB, free: 12.51 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001233/0.1113, allocations: 213.7 kB / 358.8 MB, free: 12.3 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001454/0.1127, allocations: 0.5032 MB / 359.3 MB, free: 11.79 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.002026/0.1148, allocations: 1.387 MB / 360.7 MB, free: 10.4 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001076/0.1159, allocations: 0.6286 MB / 361.4 MB, free: 9.75 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000704/0.1166, allocations: 470.2 kB / 361.8 MB, free: 9.289 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006574/0.1173, allocations: 0.4973 MB / 362.3 MB, free: 8.789 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002368/0.1175, allocations: 124 kB / 362.4 MB, free: 8.668 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003542/0.1179, allocations: 139.9 kB / 362.6 MB, free: 8.531 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002572/0.1182, allocations: 259.1 kB / 362.8 MB, free: 8.277 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007407/0.1189, allocations: 0.6139 MB / 363.4 MB, free: 7.66 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001516/0.1204, allocations: 1.557 MB / 365 MB, free: 6.098 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.47e-06/0.1205, allocations: 0 / 365 MB, free: 6.098 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.522e-06/0.1205, allocations: 4 kB / 365 MB, free: 6.094 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.618e-05/0.1205, allocations: 0 / 365 MB, free: 6.094 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.002667/0.1232, allocations: 1.466 MB / 366.5 MB, free: 4.574 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.864e-05/0.1233, allocations: 8.031 kB / 366.5 MB, free: 4.566 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002629/0.1235, allocations: 142.2 kB / 366.6 MB, free: 4.426 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001105/0.1246, allocations: 0.7237 MB / 367.3 MB, free: 3.66 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.621e-05/0.1247, allocations: 86.41 kB / 367.4 MB, free: 3.574 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001604/0.1249, allocations: 116 kB / 367.5 MB, free: 3.461 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001912/0.1268, allocations: 1.26 MB / 368.8 MB, free: 2.031 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.242e-05/0.1269, allocations: 15.88 kB / 368.8 MB, free: 2.016 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.249e-05/0.127, allocations: 56 kB / 368.9 MB, free: 1.961 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.854e-05/0.127, allocations: 35.98 kB / 368.9 MB, free: 1.926 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001235/0.1282, allocations: 0.6851 MB / 369.6 MB, free: 1.238 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1737/0.302, allocations: 6.818 MB / 376.4 MB, free: 20.21 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007041/0.3027, allocations: 264.2 kB / 376.7 MB, free: 20.09 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003673/0.3031, allocations: 182.8 kB / 376.8 MB, free: 20.02 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001896/0.3033, allocations: 84.56 kB / 376.9 MB, free: 19.92 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.217e-05/0.3033, allocations: 39.89 kB / 377 MB, free: 19.88 MB / 302.1 MB Notification: Performance of pre-optimization done (n=27): time 2.525e-06/0.3033, allocations: 0 / 377 MB, free: 19.88 MB / 302.1 MB Notification: Performance of matching and sorting (n=29): time 0.002381/0.3057, allocations: 1.396 MB / 378.4 MB, free: 18.87 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.024e-05/0.3058, allocations: 85.36 kB / 378.4 MB, free: 18.77 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007226/0.3065, allocations: 0.662 MB / 379.1 MB, free: 18.48 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.051e-05/0.3065, allocations: 31.05 kB / 379.1 MB, free: 18.44 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003216/0.3068, allocations: 0.6813 MB / 379.8 MB, free: 17.91 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.864e-05/0.3069, allocations: 112.2 kB / 379.9 MB, free: 17.82 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000157/0.3071, allocations: 143.8 kB / 380.1 MB, free: 17.74 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001065/0.3072, allocations: 383.9 kB / 380.4 MB, free: 17.4 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002663/0.3075, allocations: 147.1 kB / 380.6 MB, free: 17.35 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004096/0.3079, allocations: 0.5531 MB / 381.1 MB, free: 16.73 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.0009198/0.3088, allocations: 0.9603 MB / 382.1 MB, free: 15.79 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.035e-06/0.3088, allocations: 4.219 kB / 382.1 MB, free: 15.79 MB / 302.1 MB Notification: Performance of matching and sorting (n=98) (initialization): time 0.00118/0.31, allocations: 0.8035 MB / 382.9 MB, free: 15.43 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.491e-05/0.3101, allocations: 15.06 kB / 382.9 MB, free: 15.43 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.976e-05/0.3101, allocations: 14.97 kB / 382.9 MB, free: 15.43 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000235/0.3103, allocations: 85.89 kB / 383 MB, free: 15.39 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005273/0.3109, allocations: 183.3 kB / 383.2 MB, free: 15.38 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001816/0.3127, allocations: 3.324 MB / 386.5 MB, free: 12.13 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003955/0.3131, allocations: 36.09 kB / 386.6 MB, free: 12.12 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.865e-05/0.3131, allocations: 44.77 kB / 386.6 MB, free: 12.11 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.0003777/0.3135, allocations: 262.9 kB / 386.9 MB, free: 11.91 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001318/0.3137, allocations: 78.7 kB / 386.9 MB, free: 11.86 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001078/0.3138, allocations: 74.89 kB / 387 MB, free: 11.82 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.386e-06/0.3138, allocations: 2.969 kB / 387 MB, free: 11.82 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.26e-05/0.3138, allocations: 5.719 kB / 387 MB, free: 11.82 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.973e-06/0.3138, allocations: 7.359 kB / 387 MB, free: 11.81 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001871/0.3157, allocations: 1.246 MB / 388.3 MB, free: 11.07 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.25e-06/0.3157, allocations: 1.922 kB / 388.3 MB, free: 11.07 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000317/0.316, allocations: 66.14 kB / 388.3 MB, free: 11.07 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001551/0.3162, allocations: 62.47 kB / 388.4 MB, free: 11.04 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.458e-05/0.3162, allocations: 13.12 kB / 388.4 MB, free: 11.04 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001568/0.3178, allocations: 3.049 MB / 391.5 MB, free: 7.996 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.402e-06/0.3178, allocations: 8.844 kB / 391.5 MB, free: 7.992 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000839/0.3187, allocations: 0.6255 MB / 392.1 MB, free: 7.578 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001059/0.3188, allocations: 135.7 kB / 392.2 MB, free: 7.445 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.403e-05/0.3189, allocations: 12.02 kB / 392.2 MB, free: 7.438 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002519/0.3191, allocations: 16.09 kB / 392.3 MB, free: 7.434 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.087e-05/0.3192, allocations: 26.94 kB / 392.3 MB, free: 7.426 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.912e-05/0.3192, allocations: 12.28 kB / 392.3 MB, free: 7.422 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.00054/0.3198, allocations: 433.9 kB / 392.7 MB, free: 7.234 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.3198, allocations: 0 / 392.7 MB, free: 7.234 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0009896/0.3208, allocations: 159.2 kB / 392.9 MB, free: 7.215 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.0001346/0.3209, allocations: 107.3 kB / 393 MB, free: 7.121 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001069/0.322, allocations: 0.6711 MB / 393.6 MB, free: 6.738 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.657e-06/0.322, allocations: 0 / 393.6 MB, free: 6.738 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004179/0.3224, allocations: 365.3 kB / 394 MB, free: 6.469 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005471/0.323, allocations: 87.7 kB / 394.1 MB, free: 6.418 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002862/0.3259, allocations: 1.886 MB / 396 MB, free: 5.27 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005994/0.3265, allocations: 1.036 MB / 397 MB, free: 4.551 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001431/0.3266, allocations: 62.38 kB / 397.1 MB, free: 4.539 MB / 302.1 MB Notification: Performance of SimCode: time 3.3e-07/0.3266, allocations: 0 / 397.1 MB, free: 4.539 MB / 302.1 MB Notification: Performance of Templates: time 0.02091/0.3476, allocations: 19.51 MB / 416.6 MB, free: 5.922 MB / 318.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/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