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.001631/0.001631, allocations: 110.6 kB / 17.73 MB, free: 5.34 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.001848/0.001849, allocations: 194.9 kB / 18.67 MB, free: 4.406 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.556/1.556, allocations: 205.1 MB / 224.5 MB, free: 12.23 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.001422/0.001421, allocations: 51.94 kB / 328 MB, free: 3.785 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1248/0.1263, allocations: 46.62 MB / 374.7 MB, free: 5.059 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.GenerationOfFMUs): time 0.2445/0.3708, allocations: 5.948 MB / 380.6 MB, free: 9.148 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.003238/0.3741, allocations: 1.696 MB / 382.3 MB, free: 9.051 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008583/0.375, allocations: 33.81 kB / 382.3 MB, free: 9.039 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006048/0.3757, allocations: 245.3 kB / 382.6 MB, free: 8.902 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007078/0.3764, allocations: 222 kB / 382.8 MB, free: 8.777 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001418/0.3779, allocations: 0.4984 MB / 383.3 MB, free: 8.766 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.002012/0.3799, allocations: 1.396 MB / 384.7 MB, free: 8.094 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009686/0.3809, allocations: 0.6275 MB / 385.3 MB, free: 7.801 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007186/0.3816, allocations: 477.8 kB / 385.8 MB, free: 7.547 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000572/0.3822, allocations: 0.4915 MB / 386.3 MB, free: 7.254 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001711/0.3823, allocations: 122 kB / 386.4 MB, free: 7.254 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003228/0.3827, allocations: 135 kB / 386.5 MB, free: 7.25 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001814/0.3829, allocations: 271.3 kB / 386.8 MB, free: 7.059 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005326/0.3834, allocations: 0.6127 MB / 387.4 MB, free: 6.633 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002154/0.3856, allocations: 1.622 MB / 389 MB, free: 6 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.843e-06/0.3856, allocations: 0.5156 kB / 389 MB, free: 6 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.114e-06/0.3856, allocations: 1.5 kB / 389 MB, free: 6 MB / 318.1 MB Notification: Performance of Transformations before backend: time 3.868e-05/0.3857, allocations: 1.125 kB / 389 MB, free: 6 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.002686/0.3884, allocations: 1.496 MB / 390.5 MB, free: 4.996 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.39e-05/0.3884, allocations: 10.34 kB / 390.5 MB, free: 4.996 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002592/0.3887, allocations: 178.1 kB / 390.7 MB, free: 4.879 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002354/0.3889, allocations: 147.6 kB / 390.9 MB, free: 4.801 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001299/0.3902, allocations: 0.7681 MB / 391.6 MB, free: 4.309 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.916e-05/0.3903, allocations: 86.66 kB / 391.7 MB, free: 4.27 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002483/0.3906, allocations: 118.2 kB / 391.8 MB, free: 4.23 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00244/0.393, allocations: 1.261 MB / 393.1 MB, free: 3.414 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.538e-05/0.3931, allocations: 12.19 kB / 393.1 MB, free: 3.406 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001018/0.3932, allocations: 57.75 kB / 393.2 MB, free: 3.363 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.253e-05/0.3933, allocations: 35.69 kB / 393.2 MB, free: 3.359 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0016/0.3949, allocations: 0.6807 MB / 393.9 MB, free: 3.109 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008144/0.403, allocations: 6.797 MB / 400.7 MB, free: 13.42 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008801/0.404, allocations: 265.3 kB / 400.9 MB, free: 13.3 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000534/0.4045, allocations: 185.7 kB / 401.1 MB, free: 13.22 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001745/0.4047, allocations: 84.62 kB / 401.2 MB, free: 13.12 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.936e-05/0.4047, allocations: 41.22 kB / 401.2 MB, free: 13.08 MB / 334.1 MB Notification: Performance of pre-optimization done (n=27): time 3.748e-06/0.4048, allocations: 0 / 401.2 MB, free: 13.08 MB / 334.1 MB Notification: Performance of matching and sorting (n=29): time 0.003387/0.4082, allocations: 1.43 MB / 402.7 MB, free: 12.01 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.159e-05/0.4082, allocations: 84.48 kB / 402.7 MB, free: 11.91 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001082/0.4093, allocations: 0.6589 MB / 403.4 MB, free: 11.61 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.56e-05/0.4094, allocations: 31.55 kB / 403.4 MB, free: 11.58 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005214/0.4099, allocations: 0.7002 MB / 404.1 MB, free: 11.02 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001071/0.41, allocations: 124.9 kB / 404.3 MB, free: 10.93 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000225/0.4102, allocations: 151.2 kB / 404.4 MB, free: 10.84 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0002089/0.4105, allocations: 383.2 kB / 404.8 MB, free: 10.5 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003496/0.4108, allocations: 147.9 kB / 404.9 MB, free: 10.45 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006261/0.4115, allocations: 0.5522 MB / 405.5 MB, free: 9.84 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.001417/0.4129, allocations: 0.949 MB / 406.4 MB, free: 8.906 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.051e-05/0.4129, allocations: 4.125 kB / 406.4 MB, free: 8.906 MB / 334.1 MB Notification: Performance of matching and sorting (n=98) (initialization): time 0.001592/0.4145, allocations: 0.7977 MB / 407.2 MB, free: 8.543 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.908e-05/0.4145, allocations: 12.31 kB / 407.2 MB, free: 8.543 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.156e-05/0.4146, allocations: 15.19 kB / 407.2 MB, free: 8.543 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003639/0.4149, allocations: 86.28 kB / 407.3 MB, free: 8.508 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006322/0.4156, allocations: 185.4 kB / 407.5 MB, free: 8.484 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003223/0.4188, allocations: 3.325 MB / 410.8 MB, free: 5.188 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006672/0.4195, allocations: 34.11 kB / 410.9 MB, free: 5.172 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.642e-05/0.4196, allocations: 44.19 kB / 410.9 MB, free: 5.164 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.0006468/0.4202, allocations: 281.4 kB / 411.2 MB, free: 4.938 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001718/0.4204, allocations: 74.25 kB / 411.3 MB, free: 4.898 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001357/0.4206, allocations: 71.97 kB / 411.3 MB, free: 4.848 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.376e-06/0.4206, allocations: 10.91 kB / 411.3 MB, free: 4.84 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.23e-05/0.4206, allocations: 1.719 kB / 411.3 MB, free: 4.84 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.484e-06/0.4206, allocations: 1.531 kB / 411.3 MB, free: 4.84 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0024/0.423, allocations: 1.249 MB / 412.6 MB, free: 3.898 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.969e-06/0.423, allocations: 1.125 kB / 412.6 MB, free: 3.898 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003575/0.4234, allocations: 62.06 kB / 412.7 MB, free: 3.887 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002147/0.4237, allocations: 63.23 kB / 412.7 MB, free: 3.844 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.482e-05/0.4237, allocations: 7.594 kB / 412.7 MB, free: 3.84 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002489/0.4262, allocations: 3.06 MB / 415.8 MB, free: 0.707 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.444e-06/0.4262, allocations: 5.344 kB / 415.8 MB, free: 0.7031 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001126/0.4273, allocations: 0.6383 MB / 416.4 MB, free: 248 kB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002689/0.4276, allocations: 138.1 kB / 416.6 MB, free: 108 kB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.846e-05/0.4277, allocations: 6.906 kB / 416.6 MB, free: 104 kB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002752/0.428, allocations: 17.83 kB / 416.6 MB, free: 96 kB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.221e-05/0.4281, allocations: 30.91 kB / 416.6 MB, free: 76 kB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.436e-05/0.4281, allocations: 14.77 kB / 416.6 MB, free: 68 kB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0006731/0.4288, allocations: 432.1 kB / 417.1 MB, free: 15.82 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.4288, allocations: 3.938 kB / 417.1 MB, free: 15.82 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.001275/0.4301, allocations: 158.3 kB / 417.2 MB, free: 15.8 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.001388/0.4315, allocations: 1.197 MB / 418.4 MB, free: 14.8 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001611/0.4331, allocations: 0.6502 MB / 419.1 MB, free: 14.37 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.707e-06/0.4331, allocations: 2.656 kB / 419.1 MB, free: 14.37 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005102/0.4336, allocations: 367.5 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.0007841/0.4344, allocations: 81.84 kB / 419.5 MB, free: 14.03 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01118/0.4456, allocations: 6.43 MB / 425.9 MB, free: 9.184 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009239/0.4466, allocations: 1.034 MB / 427 MB, free: 8.336 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0004477/0.4471, allocations: 94.66 kB / 427.1 MB, free: 8.281 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005899/0.4477, allocations: 422.7 kB / 427.5 MB, free: 7.906 MB / 350.1 MB Notification: Performance of SimCode: time 3.065e-06/0.4477, allocations: 0 / 427.5 MB, free: 7.906 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04662/0.4943, allocations: 12.69 MB / 440.2 MB, free: 11.34 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.6/11.09, allocations: 11.86 kB / 440.2 MB, free: 11.32 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