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.00143/0.001431, allocations: 114.5 kB / 17.73 MB, free: 5.312 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.001421/0.001421, allocations: 187 kB / 18.67 MB, free: 4.387 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.635/1.635, allocations: 205.1 MB / 224.5 MB, free: 12.25 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.001742/0.001742, allocations: 51.92 kB / 328 MB, free: 3.785 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1176/0.1193, allocations: 46.61 MB / 374.7 MB, free: 5.066 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.GenerationOfFMUs): time 0.2098/0.3292, allocations: 5.955 MB / 380.6 MB, free: 9.148 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.004186/0.3334, allocations: 1.696 MB / 382.3 MB, free: 9.039 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0017/0.3352, allocations: 32.44 kB / 382.3 MB, free: 9.027 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007947/0.336, allocations: 248.3 kB / 382.6 MB, free: 8.891 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006875/0.3367, allocations: 218.3 kB / 382.8 MB, free: 8.766 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001558/0.3383, allocations: 0.4996 MB / 383.3 MB, free: 8.754 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.002528/0.3409, allocations: 1.392 MB / 384.7 MB, free: 8.07 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001236/0.3421, allocations: 0.6251 MB / 385.3 MB, free: 7.785 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001049/0.3432, allocations: 484.5 kB / 385.8 MB, free: 7.523 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007203/0.3439, allocations: 0.4907 MB / 386.3 MB, free: 7.23 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001998/0.3441, allocations: 125.3 kB / 386.4 MB, free: 7.23 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003384/0.3445, allocations: 131.9 kB / 386.5 MB, free: 7.23 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002438/0.3447, allocations: 267.4 kB / 386.8 MB, free: 7.039 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006539/0.3454, allocations: 0.6125 MB / 387.4 MB, free: 6.617 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002335/0.3477, allocations: 1.625 MB / 389 MB, free: 5.98 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.321e-06/0.3477, allocations: 0 / 389 MB, free: 5.98 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.954e-06/0.3477, allocations: 2.375 kB / 389 MB, free: 5.98 MB / 318.1 MB Notification: Performance of Transformations before backend: time 2.906e-05/0.3478, allocations: 0 / 389 MB, free: 5.98 MB / 318.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.002769/0.3505, allocations: 1.495 MB / 390.5 MB, free: 4.977 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.661e-05/0.3506, allocations: 10 kB / 390.5 MB, free: 4.977 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002627/0.3509, allocations: 177.9 kB / 390.7 MB, free: 4.859 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003802/0.3513, allocations: 147.8 kB / 390.9 MB, free: 4.781 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001608/0.3529, allocations: 0.7681 MB / 391.6 MB, free: 4.289 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001214/0.353, allocations: 86.62 kB / 391.7 MB, free: 4.25 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002086/0.3533, allocations: 118.3 kB / 391.8 MB, free: 4.211 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002161/0.3554, allocations: 1.26 MB / 393.1 MB, free: 3.395 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.713e-05/0.3555, allocations: 11.69 kB / 393.1 MB, free: 3.387 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.61e-05/0.3556, allocations: 62.44 kB / 393.2 MB, free: 3.34 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.277e-05/0.3556, allocations: 32.86 kB / 393.2 MB, free: 3.34 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001336/0.357, allocations: 0.6803 MB / 393.9 MB, free: 3.09 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007263/0.3642, allocations: 6.798 MB / 400.7 MB, free: 13.4 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000839/0.3651, allocations: 267 kB / 400.9 MB, free: 13.27 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000426/0.3655, allocations: 187 kB / 401.1 MB, free: 13.2 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001724/0.3657, allocations: 84.27 kB / 401.2 MB, free: 13.1 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.773e-05/0.3658, allocations: 37.56 kB / 401.2 MB, free: 13.06 MB / 334.1 MB Notification: Performance of pre-optimization done (n=27): time 2.284e-06/0.3658, allocations: 0 / 401.2 MB, free: 13.06 MB / 334.1 MB Notification: Performance of matching and sorting (n=29): time 0.002933/0.3687, allocations: 1.428 MB / 402.7 MB, free: 11.99 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.193e-05/0.3688, allocations: 81.02 kB / 402.7 MB, free: 11.89 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009961/0.3698, allocations: 0.6662 MB / 403.4 MB, free: 11.59 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 4.919e-05/0.3699, allocations: 29.7 kB / 403.4 MB, free: 11.56 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00065/0.3705, allocations: 0.6999 MB / 404.1 MB, free: 11 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001358/0.3707, allocations: 126.2 kB / 404.2 MB, free: 10.91 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002859/0.371, allocations: 148.9 kB / 404.4 MB, free: 10.82 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0002926/0.3713, allocations: 385.2 kB / 404.8 MB, free: 10.48 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003321/0.3716, allocations: 147.9 kB / 404.9 MB, free: 10.43 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007385/0.3724, allocations: 0.5529 MB / 405.5 MB, free: 9.82 MB / 334.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.001477/0.3738, allocations: 0.9491 MB / 406.4 MB, free: 8.883 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.965e-06/0.3739, allocations: 4.125 kB / 406.4 MB, free: 8.883 MB / 334.1 MB Notification: Performance of matching and sorting (n=98) (initialization): time 0.001574/0.3754, allocations: 0.7989 MB / 407.2 MB, free: 8.52 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.094e-05/0.3755, allocations: 12.62 kB / 407.2 MB, free: 8.52 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.291e-05/0.3755, allocations: 13.7 kB / 407.2 MB, free: 8.52 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000316/0.3758, allocations: 85.19 kB / 407.3 MB, free: 8.488 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005701/0.3764, allocations: 183.4 kB / 407.5 MB, free: 8.465 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003137/0.3796, allocations: 3.323 MB / 410.8 MB, free: 5.172 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005253/0.3801, allocations: 34.62 kB / 410.9 MB, free: 5.156 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.225e-05/0.3802, allocations: 40.22 kB / 410.9 MB, free: 5.152 MB / 334.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.0005819/0.3808, allocations: 284.8 kB / 411.2 MB, free: 4.922 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001335/0.3809, allocations: 74.41 kB / 411.3 MB, free: 4.883 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001428/0.3811, allocations: 71.38 kB / 411.3 MB, free: 4.832 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.47e-06/0.3811, allocations: 3.969 kB / 411.3 MB, free: 4.832 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.917e-05/0.3811, allocations: 2.281 kB / 411.3 MB, free: 4.832 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.111e-06/0.3811, allocations: 3.828 kB / 411.3 MB, free: 4.832 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002091/0.3832, allocations: 1.248 MB / 412.6 MB, free: 3.895 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.348e-06/0.3832, allocations: 5.031 kB / 412.6 MB, free: 3.891 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003197/0.3835, allocations: 69.86 kB / 412.7 MB, free: 3.871 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001871/0.3837, allocations: 51.72 kB / 412.7 MB, free: 3.84 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.845e-05/0.3838, allocations: 14.48 kB / 412.7 MB, free: 3.828 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002647/0.3864, allocations: 3.06 MB / 415.8 MB, free: 0.6953 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.045e-06/0.3865, allocations: 1 kB / 415.8 MB, free: 0.6953 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001144/0.3876, allocations: 0.6409 MB / 416.4 MB, free: 240 kB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001811/0.3878, allocations: 145.4 kB / 416.6 MB, free: 92 kB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.524e-05/0.3879, allocations: 7.031 kB / 416.6 MB, free: 88 kB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002595/0.3881, allocations: 18.05 kB / 416.6 MB, free: 80 kB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.49e-05/0.3882, allocations: 26.41 kB / 416.6 MB, free: 64 kB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.009e-05/0.3883, allocations: 14.81 kB / 416.6 MB, free: 56 kB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0007343/0.389, allocations: 440.3 kB / 417.1 MB, free: 15.8 MB / 350.1 MB Notification: Performance of sort global known variables: time 3.01e-07/0.389, allocations: 0 / 417.1 MB, free: 15.8 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.001096/0.3901, allocations: 154.3 kB / 417.2 MB, free: 15.79 MB / 350.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.001385/0.3915, allocations: 1.192 MB / 418.4 MB, free: 14.79 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001321/0.3928, allocations: 0.6553 MB / 419.1 MB, free: 14.36 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.417e-06/0.3929, allocations: 0 / 419.1 MB, free: 14.36 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005512/0.3934, allocations: 359.1 kB / 419.4 MB, free: 14.07 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006003/0.394, allocations: 79.89 kB / 419.5 MB, free: 14.02 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01032/0.4044, allocations: 6.446 MB / 425.9 MB, free: 9.164 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000847/0.4053, allocations: 1.034 MB / 427 MB, free: 8.316 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0003284/0.4056, allocations: 82.66 kB / 427 MB, free: 8.273 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005239/0.4061, allocations: 424.2 kB / 427.5 MB, free: 7.898 MB / 350.1 MB Notification: Performance of SimCode: time 3.226e-06/0.4061, allocations: 0 / 427.5 MB, free: 7.898 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05017/0.4563, allocations: 12.71 MB / 440.2 MB, free: 11.34 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.96/11.41, allocations: 3.906 kB / 440.2 MB, free: 11.34 MB / 366.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