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.002262/0.002261, allocations: 116.5 kB / 16.63 MB, free: 6.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.001843/0.001843, allocations: 197.8 kB / 17.55 MB, free: 6.043 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.367/1.367, allocations: 222.9 MB / 241.2 MB, free: 13.71 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009228/0.0009229, allocations: 45.95 kB / 300.1 MB, free: 5.957 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09461/0.09554, allocations: 49.45 MB / 349.6 MB, free: 4.504 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.GenerationOfFMUs): time 0.00748/0.1031, allocations: 5.96 MB / 355.5 MB, free: 14.51 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.003094/0.1062, allocations: 1.613 MB / 357.2 MB, free: 12.89 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004615/0.1067, allocations: 35.81 kB / 357.2 MB, free: 12.86 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004696/0.1072, allocations: 182.5 kB / 357.4 MB, free: 12.68 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004099/0.1076, allocations: 170.5 kB / 357.5 MB, free: 12.51 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009182/0.1086, allocations: 451.6 kB / 358 MB, free: 12.07 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001548/0.1101, allocations: 1.395 MB / 359.4 MB, free: 10.67 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007683/0.1109, allocations: 0.6247 MB / 360 MB, free: 10.02 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004597/0.1114, allocations: 482.1 kB / 360.5 MB, free: 9.547 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004258/0.1118, allocations: 0.4934 MB / 361 MB, free: 9.051 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001373/0.1119, allocations: 124 kB / 361.1 MB, free: 8.93 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001899/0.1121, allocations: 132 kB / 361.2 MB, free: 8.801 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001727/0.1123, allocations: 263.1 kB / 361.5 MB, free: 8.543 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005791/0.1129, allocations: 0.6177 MB / 362.1 MB, free: 7.922 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001517/0.1144, allocations: 1.553 MB / 363.6 MB, free: 6.363 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.942e-06/0.1144, allocations: 0 / 363.6 MB, free: 6.363 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.623e-06/0.1145, allocations: 0 / 363.6 MB, free: 6.363 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.954e-05/0.1145, allocations: 4 kB / 363.6 MB, free: 6.359 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.002219/0.1167, allocations: 1.462 MB / 365.1 MB, free: 4.844 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.648e-05/0.1168, allocations: 12.03 kB / 365.1 MB, free: 4.832 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002085/0.117, allocations: 142.2 kB / 365.3 MB, free: 4.691 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009498/0.1179, allocations: 0.7238 MB / 366 MB, free: 3.922 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.64e-05/0.118, allocations: 86.41 kB / 366.1 MB, free: 3.836 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001365/0.1182, allocations: 116 kB / 366.2 MB, free: 3.723 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002051/0.1202, allocations: 1.264 MB / 367.4 MB, free: 2.289 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.235e-05/0.1203, allocations: 7.938 kB / 367.4 MB, free: 2.281 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.635e-05/0.1204, allocations: 60 kB / 367.5 MB, free: 2.223 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.729e-05/0.1204, allocations: 32 kB / 367.5 MB, free: 2.191 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001174/0.1216, allocations: 0.689 MB / 368.2 MB, free: 1.504 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1785/0.3001, allocations: 6.808 MB / 375 MB, free: 19.75 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006651/0.3008, allocations: 275.2 kB / 375.3 MB, free: 19.71 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003782/0.3012, allocations: 181 kB / 375.5 MB, free: 19.69 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001402/0.3014, allocations: 83.97 kB / 375.6 MB, free: 19.6 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.757e-05/0.3014, allocations: 40.75 kB / 375.6 MB, free: 19.55 MB / 302.1 MB Notification: Performance of pre-optimization done (n=27): time 2.515e-06/0.3014, allocations: 1.594 kB / 375.6 MB, free: 19.55 MB / 302.1 MB Notification: Performance of matching and sorting (n=29): time 0.00223/0.3036, allocations: 1.4 MB / 377 MB, free: 18.69 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.379e-05/0.3037, allocations: 81.88 kB / 377.1 MB, free: 18.6 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008194/0.3045, allocations: 0.6583 MB / 377.7 MB, free: 18.3 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.337e-05/0.3045, allocations: 31.14 kB / 377.8 MB, free: 18.27 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003339/0.3049, allocations: 0.682 MB / 378.5 MB, free: 17.73 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.353e-05/0.3049, allocations: 117.5 kB / 378.6 MB, free: 17.64 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001851/0.3051, allocations: 144.4 kB / 378.7 MB, free: 17.56 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001165/0.3053, allocations: 382.9 kB / 379.1 MB, free: 17.22 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002848/0.3056, allocations: 143.9 kB / 379.2 MB, free: 17.17 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004342/0.306, allocations: 0.5487 MB / 379.8 MB, free: 16.57 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.0009085/0.3069, allocations: 0.9634 MB / 380.7 MB, free: 15.62 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.635e-06/0.3069, allocations: 7.188 kB / 380.7 MB, free: 15.62 MB / 302.1 MB Notification: Performance of matching and sorting (n=98) (initialization): time 0.001191/0.3081, allocations: 0.7918 MB / 381.5 MB, free: 15.27 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.534e-05/0.3082, allocations: 11.08 kB / 381.5 MB, free: 15.27 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.998e-05/0.3082, allocations: 14.91 kB / 381.6 MB, free: 15.27 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002384/0.3084, allocations: 93.16 kB / 381.7 MB, free: 15.23 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005333/0.309, allocations: 179 kB / 381.8 MB, free: 15.21 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001911/0.3109, allocations: 3.329 MB / 385.2 MB, free: 11.97 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00042/0.3113, allocations: 32.52 kB / 385.2 MB, free: 11.96 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.219e-05/0.3114, allocations: 41.47 kB / 385.2 MB, free: 11.95 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.0003748/0.3118, allocations: 276 kB / 385.5 MB, free: 11.73 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001142/0.3119, allocations: 74.77 kB / 385.6 MB, free: 11.7 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001057/0.312, allocations: 76.39 kB / 385.6 MB, free: 11.65 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.938e-06/0.312, allocations: 3.5 kB / 385.6 MB, free: 11.65 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.548e-06/0.312, allocations: 1.656 kB / 385.6 MB, free: 11.65 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.659e-06/0.312, allocations: 1.406 kB / 385.7 MB, free: 11.65 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001777/0.3138, allocations: 1.255 MB / 386.9 MB, free: 10.91 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.517e-06/0.3138, allocations: 1.094 kB / 386.9 MB, free: 10.91 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003186/0.3142, allocations: 65.38 kB / 387 MB, free: 10.91 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001461/0.3143, allocations: 60.06 kB / 387 MB, free: 10.88 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.406e-05/0.3144, allocations: 16.45 kB / 387 MB, free: 10.87 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001499/0.3159, allocations: 3.052 MB / 390.1 MB, free: 7.824 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.954e-06/0.3159, allocations: 1.188 kB / 390.1 MB, free: 7.824 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00081/0.3167, allocations: 0.6233 MB / 390.7 MB, free: 7.414 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.959e-05/0.3168, allocations: 134.9 kB / 390.9 MB, free: 7.281 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.735e-05/0.3169, allocations: 12.36 kB / 390.9 MB, free: 7.273 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002886/0.3172, allocations: 16.09 kB / 390.9 MB, free: 7.27 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.089e-05/0.3173, allocations: 31.27 kB / 390.9 MB, free: 7.258 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.079e-05/0.3173, allocations: 12.5 kB / 390.9 MB, free: 7.254 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0004832/0.3178, allocations: 433.3 kB / 391.3 MB, free: 7.066 MB / 302.1 MB Notification: Performance of sort global known variables: time 2e-07/0.3178, allocations: 0 / 391.3 MB, free: 7.066 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.000957/0.3187, allocations: 159 kB / 391.5 MB, free: 7.047 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.0001291/0.3189, allocations: 112.6 kB / 391.6 MB, free: 6.949 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001018/0.3199, allocations: 0.6605 MB / 392.3 MB, free: 6.57 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.065e-06/0.3199, allocations: 4 kB / 392.3 MB, free: 6.566 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004222/0.3203, allocations: 358.7 kB / 392.6 MB, free: 6.305 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005444/0.3209, allocations: 80.38 kB / 392.7 MB, free: 6.262 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003291/0.3242, allocations: 2.331 MB / 395 MB, free: 4.66 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005933/0.3248, allocations: 1.034 MB / 396.1 MB, free: 3.945 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0003566/0.3252, allocations: 86.8 kB / 396.2 MB, free: 3.922 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001107/0.3253, allocations: 57.14 kB / 396.2 MB, free: 3.91 MB / 302.1 MB Notification: Performance of SimCode: time 6.52e-07/0.3253, allocations: 0 / 396.2 MB, free: 3.91 MB / 302.1 MB Notification: Performance of Templates: time 0.01256/0.3379, allocations: 5.37 MB / 401.6 MB, free: 2.051 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 -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