Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.GenerationOfFMUs,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Analog_Examples_GenerationOfFMUs",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.GenerationOfFMUs,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Analog_Examples_GenerationOfFMUs",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001668/0.001668, allocations: 98.88 kB / 17.58 MB, free: 5.418 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.002291/0.002291, allocations: 191.9 kB / 18.51 MB, free: 4.5 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.361/1.361, allocations: 205.1 MB / 224.4 MB, free: 12.29 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001353/0.001353, allocations: 56.14 kB / 280.8 MB, free: 3.082 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08639/0.08775, allocations: 46.63 MB / 327.4 MB, free: 4.379 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.GenerationOfFMUs): time 0.007671/0.09547, allocations: 5.954 MB / 333.3 MB, free: 14.38 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.003618/0.09913, allocations: 1.695 MB / 335 MB, free: 12.68 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001048/0.1002, allocations: 27.88 kB / 335.1 MB, free: 12.65 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008919/0.1011, allocations: 253.5 kB / 335.3 MB, free: 12.4 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001025/0.1022, allocations: 209.8 kB / 335.5 MB, free: 12.2 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001381/0.1036, allocations: 0.5032 MB / 336 MB, free: 11.69 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.001667/0.1053, allocations: 1.384 MB / 337.4 MB, free: 10.3 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008826/0.1062, allocations: 0.6169 MB / 338 MB, free: 9.668 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005454/0.1067, allocations: 474.2 kB / 338.5 MB, free: 9.203 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005586/0.1073, allocations: 0.4973 MB / 339 MB, free: 8.703 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001479/0.1074, allocations: 120 kB / 339.1 MB, free: 8.586 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002107/0.1077, allocations: 136 kB / 339.2 MB, free: 8.453 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001911/0.1079, allocations: 267 kB / 339.5 MB, free: 8.191 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005534/0.1084, allocations: 0.6061 MB / 340.1 MB, free: 7.582 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001368/0.1098, allocations: 1.569 MB / 341.7 MB, free: 6.008 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.117e-06/0.1098, allocations: 4 kB / 341.7 MB, free: 6.004 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.442e-06/0.1098, allocations: 0 / 341.7 MB, free: 6.004 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.77e-05/0.1098, allocations: 0 / 341.7 MB, free: 6.004 MB / 286.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.002042/0.1119, allocations: 1.454 MB / 343.1 MB, free: 4.496 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.13e-05/0.1119, allocations: 12.03 kB / 343.1 MB, free: 4.484 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000171/0.1121, allocations: 181.7 kB / 343.3 MB, free: 4.297 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001784/0.1123, allocations: 142.3 kB / 343.4 MB, free: 4.156 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000902/0.1132, allocations: 0.7159 MB / 344.2 MB, free: 3.398 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.089e-05/0.1133, allocations: 90.41 kB / 344.3 MB, free: 3.309 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001366/0.1134, allocations: 120 kB / 344.4 MB, free: 3.191 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001844/0.1153, allocations: 1.272 MB / 345.6 MB, free: 1.746 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.097e-05/0.1153, allocations: 7.922 kB / 345.7 MB, free: 1.738 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.461e-05/0.1154, allocations: 56 kB / 345.7 MB, free: 1.684 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.641e-05/0.1155, allocations: 32 kB / 345.7 MB, free: 1.652 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0012/0.1167, allocations: 0.689 MB / 346.4 MB, free: 0.9609 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00579/0.1225, allocations: 6.828 MB / 353.3 MB, free: 9.793 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006654/0.1232, allocations: 265.2 kB / 353.5 MB, free: 9.516 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003564/0.1235, allocations: 181.6 kB / 353.7 MB, free: 9.332 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001983/0.1237, allocations: 89.08 kB / 353.8 MB, free: 9.227 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.879e-05/0.1238, allocations: 42.56 kB / 353.8 MB, free: 9.176 MB / 302.1 MB Notification: Performance of pre-optimization done (n=27): time 1.794e-06/0.1238, allocations: 0 / 353.8 MB, free: 9.176 MB / 302.1 MB Notification: Performance of matching and sorting (n=29): time 0.002454/0.1262, allocations: 1.397 MB / 355.2 MB, free: 7.668 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.36e-05/0.1263, allocations: 77.11 kB / 355.3 MB, free: 7.574 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007215/0.127, allocations: 0.6608 MB / 356 MB, free: 6.898 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.624e-05/0.1271, allocations: 29.7 kB / 356 MB, free: 6.863 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004349/0.1275, allocations: 0.6875 MB / 356.7 MB, free: 6.164 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.811e-05/0.1276, allocations: 110.5 kB / 356.8 MB, free: 6.055 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001683/0.1278, allocations: 146.5 kB / 356.9 MB, free: 5.906 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001789/0.128, allocations: 386.8 kB / 357.3 MB, free: 5.52 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002714/0.1282, allocations: 145.9 kB / 357.4 MB, free: 5.375 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005258/0.1288, allocations: 0.5546 MB / 358 MB, free: 4.621 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.001114/0.1299, allocations: 0.9508 MB / 358.9 MB, free: 3.438 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.897e-06/0.1299, allocations: 4 kB / 358.9 MB, free: 3.434 MB / 302.1 MB Notification: Performance of matching and sorting (n=98) (initialization): time 0.001338/0.1313, allocations: 0.7922 MB / 359.7 MB, free: 2.629 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.156e-05/0.1313, allocations: 12 kB / 359.8 MB, free: 2.617 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.247e-05/0.1313, allocations: 16 kB / 359.8 MB, free: 2.602 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002432/0.1316, allocations: 81.72 kB / 359.8 MB, free: 2.516 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000532/0.1321, allocations: 183.7 kB / 360 MB, free: 2.336 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002597/0.1347, allocations: 3.332 MB / 363.4 MB, free: 14.73 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003781/0.1351, allocations: 32 kB / 363.4 MB, free: 14.7 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.362e-05/0.1352, allocations: 44 kB / 363.4 MB, free: 14.66 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.0003614/0.1356, allocations: 281.3 kB / 363.7 MB, free: 14.37 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001086/0.1357, allocations: 75.06 kB / 363.8 MB, free: 14.3 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000104/0.1358, allocations: 70.41 kB / 363.8 MB, free: 14.23 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.31e-06/0.1358, allocations: 12 kB / 363.9 MB, free: 14.21 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.703e-06/0.1358, allocations: 0 / 363.9 MB, free: 14.21 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.809e-06/0.1358, allocations: 0 / 363.9 MB, free: 14.21 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001798/0.1376, allocations: 1.251 MB / 365.1 MB, free: 12.89 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.009e-06/0.1376, allocations: 4 kB / 365.1 MB, free: 12.89 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003092/0.1379, allocations: 63.89 kB / 365.2 MB, free: 12.82 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001663/0.1381, allocations: 53.69 kB / 365.2 MB, free: 12.77 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.567e-05/0.1382, allocations: 8 kB / 365.2 MB, free: 12.76 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002176/0.1403, allocations: 3.065 MB / 368.3 MB, free: 9.41 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.994e-06/0.1404, allocations: 0 / 368.3 MB, free: 9.41 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000852/0.1412, allocations: 0.6273 MB / 368.9 MB, free: 8.75 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001179/0.1413, allocations: 140.2 kB / 369.1 MB, free: 8.594 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.881e-05/0.1414, allocations: 16 kB / 369.1 MB, free: 8.578 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002561/0.1417, allocations: 8 kB / 369.1 MB, free: 8.57 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.317e-05/0.1418, allocations: 35.89 kB / 369.1 MB, free: 8.535 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.888e-05/0.1418, allocations: 8 kB / 369.1 MB, free: 8.527 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.000495/0.1423, allocations: 431 kB / 369.6 MB, free: 8.113 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1423, allocations: 0 / 369.6 MB, free: 8.113 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0008523/0.1432, allocations: 160 kB / 369.7 MB, free: 7.957 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.001151/0.1443, allocations: 1.194 MB / 370.9 MB, free: 6.723 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001098/0.1454, allocations: 0.6487 MB / 371.6 MB, free: 6.051 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 4.037e-06/0.1454, allocations: 0.5625 kB / 371.6 MB, free: 6.051 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004831/0.1459, allocations: 377.2 kB / 371.9 MB, free: 5.656 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000547/0.1465, allocations: 75.5 kB / 372 MB, free: 5.578 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1515/0.298, allocations: 6.65 MB / 378.6 MB, free: 51.43 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005402/0.2986, allocations: 1.034 MB / 379.7 MB, free: 50.73 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0003576/0.299, allocations: 83.66 kB / 379.8 MB, free: 50.72 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004075/0.2994, allocations: 423.9 kB / 380.2 MB, free: 50.71 MB / 318.1 MB Notification: Performance of SimCode: time 8.62e-07/0.2994, allocations: 0 / 380.2 MB, free: 50.71 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03639/0.3358, allocations: 12.34 MB / 392.5 MB, free: 46.75 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.278/9.614, allocations: 8.562 kB / 392.5 MB, free: 46.75 MB / 318.1 MB (rm -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.GenerationOfFMUs.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Analog.Examples.GenerationOfFMUs.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Analog.Examples.GenerationOfFMUs.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.GenerationOfFMUs.sim & python3 -m fmpy simulate --output-file Modelica_3.2.3_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_3_2_3_Modelica_Electrical_Analog_Examples_GenerationOfFMUs.fmu > Modelica_3.2.3_Modelica.Electrical.Analog.Examples.GenerationOfFMUs.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Analog.Examples.GenerationOfFMUs_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Analog/Examples/GenerationOfFMUs/GenerationOfFMUs.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.GenerationOfFMUs.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches