Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Analog.Examples.HeatingMOSInverter.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001873/0.001873, allocations: 113.6 kB / 21.19 MB, free: 0.7031 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.002518/0.002518, allocations: 208.6 kB / 24.49 MB, free: 4.055 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.686/1.686, allocations: 207.6 MB / 235.3 MB, free: 10 MB / 190.1 MB " [Timeout remaining time 178] 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.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.HeatingMOSInverter,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Analog_Examples_HeatingMOSInverter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.HeatingMOSInverter,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Analog_Examples_HeatingMOSInverter",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Modelica requested package Complex of version 3.2.3. Complex 4.1.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.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001888/0.001888, allocations: 51.92 kB / 347.2 MB, free: 10.02 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3297/0.3316, allocations: 49.15 MB / 396.3 MB, free: 8.973 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.HeatingMOSInverter): time 0.003976/0.3356, allocations: 3.126 MB / 399.5 MB, free: 6.793 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.00159/0.3372, allocations: 0.8375 MB / 400.3 MB, free: 6.184 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002069/0.3374, allocations: 13.59 kB / 400.3 MB, free: 6.176 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001988/0.3376, allocations: 57.17 kB / 400.4 MB, free: 6.141 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000238/0.3378, allocations: 116.2 kB / 400.5 MB, free: 6.055 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004206/0.3383, allocations: 145.3 kB / 400.6 MB, free: 5.973 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004899/0.3388, allocations: 0.5295 MB / 401.2 MB, free: 5.711 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002473/0.339, allocations: 128.2 kB / 401.3 MB, free: 5.637 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000259/0.3393, allocations: 222.8 kB / 401.5 MB, free: 5.531 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000306/0.3396, allocations: 253 kB / 401.8 MB, free: 5.406 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 7.63e-05/0.3396, allocations: 51.12 kB / 401.8 MB, free: 5.406 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001196/0.3398, allocations: 54.36 kB / 401.9 MB, free: 5.406 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 8.77e-05/0.3399, allocations: 117.3 kB / 402 MB, free: 5.324 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001797/0.34, allocations: 237.4 kB / 402.2 MB, free: 5.18 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005758/0.3406, allocations: 0.5515 MB / 402.8 MB, free: 4.961 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.799e-06/0.3406, allocations: 0 / 402.8 MB, free: 4.961 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.403e-06/0.3406, allocations: 0 / 402.8 MB, free: 4.961 MB / 318.1 MB Notification: Performance of Transformations before backend: time 9.427e-06/0.3406, allocations: 1.125 kB / 402.8 MB, free: 4.961 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: 92 * Number of variables: 92 Notification: Performance of Generate backend data structure: time 0.001479/0.3421, allocations: 0.7271 MB / 403.5 MB, free: 4.48 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.848e-05/0.3421, allocations: 12.83 kB / 403.5 MB, free: 4.477 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.111e-05/0.3422, allocations: 75.34 kB / 403.6 MB, free: 4.414 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.924e-05/0.3423, allocations: 49.91 kB / 403.6 MB, free: 4.391 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000343/0.3426, allocations: 258.7 kB / 403.9 MB, free: 4.168 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.272e-05/0.3427, allocations: 28.06 kB / 403.9 MB, free: 4.156 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.104e-05/0.3427, allocations: 36.06 kB / 403.9 MB, free: 4.145 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00114/0.3439, allocations: 0.5016 MB / 404.4 MB, free: 3.926 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.448e-05/0.3439, allocations: 7.875 kB / 404.4 MB, free: 3.918 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.797e-05/0.344, allocations: 19.66 kB / 404.5 MB, free: 3.902 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.698e-05/0.344, allocations: 9.625 kB / 404.5 MB, free: 3.902 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001469/0.3454, allocations: 0.4981 MB / 405 MB, free: 3.77 MB / 318.1 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002904/0.3484, allocations: 1.628 MB / 406.6 MB, free: 2.609 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001114/0.3495, allocations: 404 kB / 407 MB, free: 2.469 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004872/0.35, allocations: 219.1 kB / 407.2 MB, free: 2.395 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.472e-05/0.35, allocations: 11.78 kB / 407.2 MB, free: 2.391 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.308e-05/0.35, allocations: 38.44 kB / 407.3 MB, free: 2.348 MB / 318.1 MB Notification: Performance of pre-optimization done (n=40): time 2.535e-06/0.35, allocations: 1.375 kB / 407.3 MB, free: 2.348 MB / 318.1 MB Notification: Performance of matching and sorting (n=40): time 0.004914/0.3549, allocations: 1.212 MB / 408.5 MB, free: 2.047 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.446e-05/0.355, allocations: 164.3 kB / 408.6 MB, free: 1.855 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003693/0.3554, allocations: 264.2 kB / 408.9 MB, free: 1.703 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 4.777e-05/0.3554, allocations: 30.73 kB / 408.9 MB, free: 1.668 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001102/0.3555, allocations: 213.7 kB / 409.1 MB, free: 1.484 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.329e-05/0.3556, allocations: 147.4 kB / 409.3 MB, free: 1.355 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001244/0.3557, allocations: 80.22 kB / 409.4 MB, free: 1.301 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 6.738e-05/0.3558, allocations: 337.8 kB / 409.7 MB, free: 0.9688 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004689/0.3563, allocations: 180.9 kB / 409.9 MB, free: 0.8867 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005066/0.3568, allocations: 284.1 kB / 410.1 MB, free: 0.6797 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009415/0.3577, allocations: 423.5 kB / 410.5 MB, free: 448 kB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.168e-06/0.3577, allocations: 0 / 410.5 MB, free: 448 kB / 318.1 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.001791/0.3595, allocations: 0.6777 MB / 411.2 MB, free: 80 kB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.912e-05/0.3595, allocations: 6.375 kB / 411.2 MB, free: 80 kB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.188e-06/0.3595, allocations: 6 kB / 411.2 MB, free: 76 kB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001386/0.3609, allocations: 314.8 kB / 411.5 MB, free: 15.93 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003637/0.3613, allocations: 81.31 kB / 411.6 MB, free: 15.91 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001423/0.3627, allocations: 1.348 MB / 413 MB, free: 14.69 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000527/0.3632, allocations: 84.53 kB / 413.1 MB, free: 14.64 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.972e-05/0.3633, allocations: 15.28 kB / 413.1 MB, free: 14.63 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * 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 (33): * Single equations (assignments): 31 * 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): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(1,9), (1,9)} Notification: Performance of prepare postOptimizeDAE: time 0.0002644/0.3635, allocations: 152.8 kB / 413.2 MB, free: 14.49 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.957e-05/0.3636, allocations: 31.91 kB / 413.3 MB, free: 14.48 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002238/0.3659, allocations: 0.7283 MB / 414 MB, free: 14.06 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.012e-05/0.3659, allocations: 8.125 kB / 414 MB, free: 14.06 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.961e-06/0.3659, allocations: 5.094 kB / 414 MB, free: 14.05 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.254e-06/0.3659, allocations: 0 / 414 MB, free: 14.05 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007451/0.3666, allocations: 438.2 kB / 414.4 MB, free: 13.7 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.956e-06/0.3666, allocations: 0 / 414.4 MB, free: 13.7 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003332/0.367, allocations: 62.66 kB / 414.5 MB, free: 13.68 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001313/0.3683, allocations: 323.2 kB / 414.8 MB, free: 13.53 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.52e-05/0.3683, allocations: 6.125 kB / 414.8 MB, free: 13.52 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001665/0.37, allocations: 1.367 MB / 416.2 MB, free: 12.29 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.244e-06/0.37, allocations: 1.188 kB / 416.2 MB, free: 12.29 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002717/0.3727, allocations: 1.006 MB / 417.2 MB, free: 11.71 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000173/0.3729, allocations: 34.34 kB / 417.2 MB, free: 11.69 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.764e-05/0.373, allocations: 10.28 kB / 417.2 MB, free: 11.68 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004053/0.3734, allocations: 47.44 kB / 417.3 MB, free: 11.66 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.908e-05/0.3734, allocations: 27.23 kB / 417.3 MB, free: 11.64 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.385e-05/0.3735, allocations: 13.11 kB / 417.3 MB, free: 11.64 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0003098/0.3738, allocations: 188 kB / 417.5 MB, free: 11.51 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.01e-07/0.3738, allocations: 0 / 417.5 MB, free: 11.51 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0005494/0.3743, allocations: 125.3 kB / 417.6 MB, free: 11.47 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (Capacitor1.v,HeatCapacitor1.T) * 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 (22): * Single equations (assignments): 20 * 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): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(1,10), (1,10)} Notification: Performance of Backend phase and start with SimCode phase: time 0.003396/0.3777, allocations: 1.555 MB / 419.2 MB, free: 10.35 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001523/0.3793, allocations: 460.5 kB / 419.6 MB, free: 10.15 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 5.23e-06/0.3793, allocations: 0 / 419.6 MB, free: 10.15 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006556/0.3799, allocations: 233.8 kB / 419.8 MB, free: 10.05 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005492/0.3805, allocations: 54.06 kB / 419.9 MB, free: 10.02 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008563/0.389, allocations: 4.044 MB / 423.9 MB, free: 6.949 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004942/0.3895, allocations: 0.7956 MB / 424.7 MB, free: 6.129 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001845/0.3897, allocations: 34.97 kB / 424.8 MB, free: 6.09 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001777/0.3899, allocations: 115.4 kB / 424.9 MB, free: 5.98 MB / 334.1 MB Notification: Performance of SimCode: time 1.973e-06/0.3899, allocations: 0 / 424.9 MB, free: 5.98 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04545/0.4353, allocations: 9.766 MB / 434.7 MB, free: 12.16 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 14.14/14.57, allocations: 3.906 kB / 434.7 MB, free: 12.15 MB / 350.1 MB " [Timeout remaining time 645] (rm -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.HeatingMOSInverter.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Analog.Examples.HeatingMOSInverter.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Analog.Examples.HeatingMOSInverter.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.HeatingMOSInverter.sim & python3 -m fmpy simulate --output-file Modelica_3.2.3_Modelica.Electrical.Analog.Examples.HeatingMOSInverter_res.csv --start-time 0 --stop-time 5 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.000989903 Modelica_3_2_3_Modelica_Electrical_Analog_Examples_HeatingMOSInverter.fmu > Modelica_3.2.3_Modelica.Electrical.Analog.Examples.HeatingMOSInverter.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Analog.Examples.HeatingMOSInverter_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Analog/Examples/HeatingMOSInverter/HeatingMOSInverter.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.HeatingMOSInverter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 17.529661288994248]