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: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.GenerationOfFMUs,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_GenerationOfFMUs",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.GenerationOfFMUs,fileNamePrefix="Modelica_4_0_0_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.001113/0.001113, allocations: 94.52 kB / 16.65 MB, free: 6.586 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.001338/0.001338, allocations: 181.2 kB / 17.56 MB, free: 6.203 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.421/1.421, allocations: 223.3 MB / 241.6 MB, free: 212 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003584/0.0003585, allocations: 8 kB / 301.5 MB, free: 6.043 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1469/0.1472, allocations: 50.41 MB / 351.9 MB, free: 3.617 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.GenerationOfFMUs): time 0.008705/0.156, allocations: 5.481 MB / 357.4 MB, free: 14.11 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.004985/0.1611, allocations: 1.609 MB / 359 MB, free: 12.49 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001737/0.1629, allocations: 27.88 kB / 359.1 MB, free: 12.46 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001104/0.164, allocations: 186.5 kB / 359.2 MB, free: 12.28 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001187/0.1652, allocations: 174.5 kB / 359.4 MB, free: 12.11 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001353/0.1666, allocations: 447.6 kB / 359.9 MB, free: 11.67 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.00195/0.1685, allocations: 1.294 MB / 361.1 MB, free: 10.38 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001034/0.1696, allocations: 0.5413 MB / 361.7 MB, free: 9.805 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007669/0.1704, allocations: 366.1 kB / 362 MB, free: 9.445 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006373/0.171, allocations: 417.2 kB / 362.5 MB, free: 9.035 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001636/0.1712, allocations: 52 kB / 362.5 MB, free: 8.984 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002697/0.1715, allocations: 64 kB / 362.6 MB, free: 8.922 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000178/0.1717, allocations: 183.1 kB / 362.7 MB, free: 8.742 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006207/0.1723, allocations: 0.5374 MB / 363.3 MB, free: 8.195 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001466/0.1738, allocations: 1.416 MB / 364.7 MB, free: 6.773 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.696e-06/0.1738, allocations: 3.984 kB / 364.7 MB, free: 6.77 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.475e-06/0.1738, allocations: 0 / 364.7 MB, free: 6.77 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.322e-05/0.1739, allocations: 0 / 364.7 MB, free: 6.77 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.002022/0.1759, allocations: 1.232 MB / 365.9 MB, free: 5.484 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.572e-05/0.1759, allocations: 12.03 kB / 365.9 MB, free: 5.473 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002103/0.1762, allocations: 185.6 kB / 366.1 MB, free: 5.281 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000247/0.1764, allocations: 142.2 kB / 366.3 MB, free: 5.141 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001/0.1774, allocations: 0.7198 MB / 367 MB, free: 4.379 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.572e-05/0.1775, allocations: 86.41 kB / 367.1 MB, free: 4.293 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001404/0.1776, allocations: 124 kB / 367.2 MB, free: 4.172 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002104/0.1797, allocations: 1.268 MB / 368.5 MB, free: 2.734 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.489e-05/0.1798, allocations: 11.92 kB / 368.5 MB, free: 2.723 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001349/0.1799, allocations: 52 kB / 368.5 MB, free: 2.672 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.68e-05/0.18, allocations: 36 kB / 368.6 MB, free: 2.637 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00126/0.1812, allocations: 0.6929 MB / 369.3 MB, free: 1.941 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1928/0.3741, allocations: 6.82 MB / 376.1 MB, free: 19.06 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001005/0.3752, allocations: 270.4 kB / 376.3 MB, free: 19.01 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005217/0.3757, allocations: 187.8 kB / 376.5 MB, free: 19 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001971/0.3759, allocations: 89.36 kB / 376.6 MB, free: 18.9 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.356e-05/0.376, allocations: 36.61 kB / 376.6 MB, free: 18.86 MB / 302.1 MB Notification: Performance of pre-optimization done (n=27): time 4.438e-06/0.376, allocations: 1.078 kB / 376.6 MB, free: 18.86 MB / 302.1 MB Notification: Performance of matching and sorting (n=29): time 0.00396/0.3799, allocations: 1.411 MB / 378.1 MB, free: 18.02 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.318e-05/0.38, allocations: 81.39 kB / 378.1 MB, free: 17.93 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0016/0.3816, allocations: 0.6641 MB / 378.8 MB, free: 17.78 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 4.072e-05/0.3817, allocations: 30.33 kB / 378.8 MB, free: 17.75 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000688/0.3824, allocations: 0.6777 MB / 379.5 MB, free: 17.37 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001671/0.3826, allocations: 119.6 kB / 379.6 MB, free: 17.29 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001523/0.3827, allocations: 69.19 kB / 379.7 MB, free: 17.25 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001624/0.3829, allocations: 387.5 kB / 380.1 MB, free: 16.9 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004832/0.3834, allocations: 150.3 kB / 380.2 MB, free: 16.85 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006519/0.3841, allocations: 0.5529 MB / 380.8 MB, free: 16.25 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.00146/0.3855, allocations: 0.9695 MB / 381.7 MB, free: 15.3 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.992e-05/0.3856, allocations: 4.125 kB / 381.7 MB, free: 15.3 MB / 302.1 MB Notification: Performance of matching and sorting (n=98) (initialization): time 0.002301/0.3879, allocations: 0.8058 MB / 382.5 MB, free: 14.94 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.755e-05/0.3879, allocations: 10.38 kB / 382.6 MB, free: 14.94 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.889e-05/0.388, allocations: 14.88 kB / 382.6 MB, free: 14.94 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003698/0.3884, allocations: 88.91 kB / 382.7 MB, free: 14.91 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008298/0.3892, allocations: 180.4 kB / 382.8 MB, free: 14.89 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002684/0.3919, allocations: 2.984 MB / 385.8 MB, free: 11.98 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007639/0.3927, allocations: 34.47 kB / 385.9 MB, free: 11.97 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.178e-05/0.3928, allocations: 47.75 kB / 385.9 MB, free: 11.96 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 sytem: 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.0006836/0.3935, allocations: 272.7 kB / 386.2 MB, free: 11.75 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002442/0.3937, allocations: 69.22 kB / 386.2 MB, free: 11.71 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002178/0.394, allocations: 72.39 kB / 386.3 MB, free: 11.67 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.025e-06/0.394, allocations: 2.938 kB / 386.3 MB, free: 11.67 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.966e-05/0.394, allocations: 2.438 kB / 386.3 MB, free: 11.67 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.514e-06/0.394, allocations: 1.359 kB / 386.3 MB, free: 11.67 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003177/0.3972, allocations: 1.265 MB / 387.6 MB, free: 10.93 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.856e-06/0.3973, allocations: 5.781 kB / 387.6 MB, free: 10.93 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000461/0.3977, allocations: 71.11 kB / 387.6 MB, free: 10.92 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000246/0.398, allocations: 52.31 kB / 387.7 MB, free: 10.89 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.838e-05/0.398, allocations: 7.906 kB / 387.7 MB, free: 10.89 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002119/0.4002, allocations: 2.786 MB / 390.5 MB, free: 8.113 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.406e-06/0.4002, allocations: 1.438 kB / 390.5 MB, free: 8.113 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001341/0.4015, allocations: 0.6609 MB / 391.2 MB, free: 7.676 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002374/0.4018, allocations: 140.8 kB / 391.3 MB, free: 7.539 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001152/0.4019, allocations: 7.984 kB / 391.3 MB, free: 7.535 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004306/0.4024, allocations: 19.61 kB / 391.3 MB, free: 7.531 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001161/0.4025, allocations: 26.92 kB / 391.3 MB, free: 7.523 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.168e-05/0.4025, allocations: 15.92 kB / 391.4 MB, free: 7.52 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0009618/0.4035, allocations: 437.4 kB / 391.8 MB, free: 7.328 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.4035, allocations: 0 / 391.8 MB, free: 7.328 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.001796/0.4053, allocations: 155.7 kB / 391.9 MB, free: 7.312 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.001721/0.407, allocations: 1.201 MB / 393.1 MB, free: 6.355 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001747/0.4088, allocations: 0.6664 MB / 393.8 MB, free: 5.977 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 4.829e-06/0.4088, allocations: 0 / 393.8 MB, free: 5.977 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006462/0.4095, allocations: 360 kB / 394.2 MB, free: 5.711 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001008/0.4105, allocations: 77.33 kB / 394.2 MB, free: 5.668 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01473/0.4253, allocations: 7.247 MB / 401.5 MB, free: 0.5312 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009546/0.4263, allocations: 1.041 MB / 402.5 MB, free: 15.81 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0004838/0.4268, allocations: 89.67 kB / 402.6 MB, free: 15.79 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006779/0.4275, allocations: 421.7 kB / 403 MB, free: 15.45 MB / 318.1 MB Notification: Performance of SimCode: time 1.052e-06/0.4275, allocations: 3.938 kB / 403 MB, free: 15.45 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03917/0.4667, allocations: 11.78 MB / 414.8 MB, free: 6.613 MB / 318.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.00025/0.467, allocations: 227 kB / 415 MB, free: 6.359 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.346/2.813, allocations: 0 / 415 MB, free: 6.359 MB / 318.1 MB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Analog.Examples.GenerationOfFMUs_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Analog_Examples_GenerationOfFMUs_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Analog_Examples_GenerationOfFMUs.fmu > 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/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_4.0.0_Modelica.Electrical.Analog.Examples.GenerationOfFMUs.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches