Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Analog.Examples.GenerationOfFMUs.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.GenerationOfFMUs,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_GenerationOfFMUs",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.GenerationOfFMUs,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_GenerationOfFMUs",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001851/0.001851, allocations: 103.8 kB / 17.63 MB, free: 5.48 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002306/0.002306, allocations: 210.4 kB / 18.58 MB, free: 4.535 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.406/1.406, allocations: 227.4 MB / 246.8 MB, free: 10.55 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001263/0.001263, allocations: 58.03 kB / 307 MB, free: 0.5078 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0966/0.09788, allocations: 50.54 MB / 357.6 MB, free: 13.97 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.GenerationOfFMUs): time 0.007493/0.1054, allocations: 6.009 MB / 363.6 MB, free: 7.926 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.00347/0.1089, allocations: 1.73 MB / 365.3 MB, free: 6.191 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001039/0.11, allocations: 35.81 kB / 365.4 MB, free: 6.156 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008412/0.1109, allocations: 249.6 kB / 365.6 MB, free: 5.91 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009184/0.1118, allocations: 221.7 kB / 365.8 MB, free: 5.691 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001419/0.1133, allocations: 0.5188 MB / 366.3 MB, free: 5.172 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.00191/0.1152, allocations: 1.384 MB / 367.7 MB, free: 3.781 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001093/0.1163, allocations: 0.6208 MB / 368.3 MB, free: 3.141 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007352/0.117, allocations: 486.1 kB / 368.8 MB, free: 2.664 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000637/0.1177, allocations: 0.4934 MB / 369.3 MB, free: 2.168 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002171/0.1179, allocations: 124 kB / 369.4 MB, free: 2.047 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003081/0.1182, allocations: 144 kB / 369.6 MB, free: 1.906 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002247/0.1185, allocations: 263 kB / 369.8 MB, free: 1.648 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000755/0.1192, allocations: 0.6216 MB / 370.4 MB, free: 1.023 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.1714/0.2907, allocations: 1.567 MB / 372 MB, free: 12.87 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.861e-06/0.2907, allocations: 0 / 372 MB, free: 12.87 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.355e-06/0.2908, allocations: 0.6094 kB / 372 MB, free: 12.87 MB / 302.1 MB Notification: Performance of Transformations before backend: time 4.479e-05/0.2908, allocations: 0 / 372 MB, free: 12.87 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.002153/0.293, allocations: 1.461 MB / 373.5 MB, free: 12.13 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.081e-05/0.293, allocations: 11.66 kB / 373.5 MB, free: 12.13 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002043/0.2932, allocations: 179.5 kB / 373.7 MB, free: 12.09 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004092/0.2936, allocations: 161 kB / 373.8 MB, free: 12.01 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001025/0.2947, allocations: 0.7226 MB / 374.5 MB, free: 11.71 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.187e-05/0.2948, allocations: 88.56 kB / 374.6 MB, free: 11.7 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001494/0.2949, allocations: 123 kB / 374.7 MB, free: 11.7 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001886/0.2968, allocations: 1.264 MB / 376 MB, free: 11.25 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.374e-05/0.2969, allocations: 6.312 kB / 376 MB, free: 11.25 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.132e-05/0.297, allocations: 52.59 kB / 376.1 MB, free: 11.25 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.761e-05/0.297, allocations: 33 kB / 376.1 MB, free: 11.25 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001293/0.2983, allocations: 0.6962 MB / 376.8 MB, free: 11.23 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006008/0.3043, allocations: 6.812 MB / 383.6 MB, free: 6.16 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007554/0.3051, allocations: 274.3 kB / 383.9 MB, free: 6.031 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00037/0.3055, allocations: 184.3 kB / 384.1 MB, free: 5.957 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001698/0.3057, allocations: 83.83 kB / 384.1 MB, free: 5.863 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.044e-05/0.3057, allocations: 41.12 kB / 384.2 MB, free: 5.82 MB / 302.1 MB Notification: Performance of pre-optimization done (n=27): time 2.705e-06/0.3057, allocations: 0 / 384.2 MB, free: 5.82 MB / 302.1 MB Notification: Performance of matching and sorting (n=29): time 0.002626/0.3084, allocations: 1.4 MB / 385.6 MB, free: 4.797 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.217e-05/0.3084, allocations: 81.22 kB / 385.7 MB, free: 4.703 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007964/0.3092, allocations: 0.6624 MB / 386.3 MB, free: 4.406 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.51e-05/0.3093, allocations: 31.02 kB / 386.4 MB, free: 4.371 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003356/0.3096, allocations: 0.6845 MB / 387 MB, free: 3.828 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.434e-05/0.3097, allocations: 123 kB / 387.2 MB, free: 3.742 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001719/0.3099, allocations: 148 kB / 387.3 MB, free: 3.66 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001128/0.31, allocations: 384.5 kB / 387.7 MB, free: 3.316 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002812/0.3103, allocations: 143.4 kB / 387.8 MB, free: 3.273 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004309/0.3107, allocations: 0.5599 MB / 388.4 MB, free: 2.664 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.0009308/0.3116, allocations: 0.9472 MB / 389.3 MB, free: 1.789 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.775e-06/0.3117, allocations: 4.469 kB / 389.3 MB, free: 1.789 MB / 302.1 MB Notification: Performance of matching and sorting (n=98) (initialization): time 0.00126/0.3129, allocations: 0.7916 MB / 390.1 MB, free: 1.52 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.457e-05/0.313, allocations: 11.38 kB / 390.1 MB, free: 1.52 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.912e-05/0.313, allocations: 14.91 kB / 390.1 MB, free: 1.52 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002794/0.3133, allocations: 89.94 kB / 390.2 MB, free: 1.484 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005669/0.3139, allocations: 180.4 kB / 390.4 MB, free: 1.48 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002439/0.3163, allocations: 3.319 MB / 393.7 MB, free: 14.26 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004643/0.3168, allocations: 35.64 kB / 393.8 MB, free: 14.24 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.439e-05/0.3169, allocations: 48.86 kB / 393.8 MB, free: 14.23 MB / 318.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.0004803/0.3174, allocations: 270.4 kB / 394.1 MB, free: 14.04 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001289/0.3175, allocations: 77.3 kB / 394.2 MB, free: 13.99 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001153/0.3176, allocations: 74.92 kB / 394.2 MB, free: 13.95 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.338e-06/0.3176, allocations: 4.312 kB / 394.2 MB, free: 13.95 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.218e-05/0.3176, allocations: 5.062 kB / 394.2 MB, free: 13.94 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.582e-06/0.3177, allocations: 3.578 kB / 394.2 MB, free: 13.94 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001945/0.3196, allocations: 1.256 MB / 395.5 MB, free: 13.21 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.428e-06/0.3196, allocations: 5.438 kB / 395.5 MB, free: 13.21 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002982/0.3199, allocations: 64.11 kB / 395.6 MB, free: 13.21 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001638/0.3201, allocations: 59.27 kB / 395.6 MB, free: 13.18 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.677e-05/0.3201, allocations: 10.41 kB / 395.6 MB, free: 13.18 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002214/0.3224, allocations: 3.046 MB / 398.7 MB, free: 10.15 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.526e-06/0.3224, allocations: 9 kB / 398.7 MB, free: 10.15 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009304/0.3233, allocations: 0.6347 MB / 399.3 MB, free: 9.73 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001336/0.3235, allocations: 133.9 kB / 399.4 MB, free: 9.598 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.197e-05/0.3235, allocations: 14.94 kB / 399.5 MB, free: 9.586 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002626/0.3238, allocations: 13.77 kB / 399.5 MB, free: 9.586 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.143e-05/0.3239, allocations: 24.78 kB / 399.5 MB, free: 9.582 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.154e-05/0.3239, allocations: 15.19 kB / 399.5 MB, free: 9.574 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0005651/0.3245, allocations: 444 kB / 400 MB, free: 9.383 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.132e-06/0.3245, allocations: 0 / 400 MB, free: 9.383 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.001206/0.3257, allocations: 161.3 kB / 400.1 MB, free: 9.363 MB / 318.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.001628/0.3273, allocations: 1.176 MB / 401.3 MB, free: 8.422 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001744/0.3291, allocations: 0.6593 MB / 401.9 MB, free: 8.082 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 6.963e-06/0.3291, allocations: 1.125 kB / 401.9 MB, free: 8.082 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006911/0.3298, allocations: 366.7 kB / 402.3 MB, free: 7.816 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007341/0.3306, allocations: 80.88 kB / 402.4 MB, free: 7.773 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01087/0.3415, allocations: 6.683 MB / 409.1 MB, free: 2.953 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005907/0.3421, allocations: 1.033 MB / 410.1 MB, free: 2.105 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0003401/0.3424, allocations: 90.34 kB / 410.2 MB, free: 2.055 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004164/0.3429, allocations: 422.3 kB / 410.6 MB, free: 1.684 MB / 318.1 MB Notification: Performance of SimCode: time 1.032e-06/0.3429, allocations: 2.219 kB / 410.6 MB, free: 1.684 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05317/0.3961, allocations: 12.39 MB / 423 MB, free: 6.418 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.568/9.964, allocations: 15.12 kB / 423 MB, free: 6.41 MB / 334.1 MB (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 & python3 -m fmpy simulate --output-file Modelica_trunk_Modelica.Electrical.Analog.Examples.GenerationOfFMUs_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.001 Modelica_trunk_Modelica_Electrical_Analog_Examples_GenerationOfFMUs.fmu > Modelica_trunk_Modelica.Electrical.Analog.Examples.GenerationOfFMUs.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Electrical.Analog.Examples.GenerationOfFMUs_res.csv","/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_trunk_Modelica.Electrical.Analog.Examples.GenerationOfFMUs.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches