Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingMOSInverter.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.HeatingMOSInverter,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_HeatingMOSInverter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.HeatingMOSInverter,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_HeatingMOSInverter",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.001561/0.001561, allocations: 109.6 kB / 16.92 MB, free: 6.332 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.00185/0.00185, allocations: 191.4 kB / 17.85 MB, free: 5.414 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.415/1.415, allocations: 222.9 MB / 241.6 MB, free: 15.3 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001109/0.001109, allocations: 50.75 kB / 300.7 MB, free: 5.797 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1031/0.1042, allocations: 49.45 MB / 350.2 MB, free: 4.34 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.HeatingMOSInverter): time 0.004698/0.109, allocations: 3.128 MB / 353.3 MB, free: 1.184 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001521/0.1105, allocations: 0.7846 MB / 354.1 MB, free: 400 kB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00018/0.1107, allocations: 7.938 kB / 354.1 MB, free: 392 kB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002034/0.1109, allocations: 59.38 kB / 354.1 MB, free: 332 kB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002057/0.1112, allocations: 118.9 kB / 354.3 MB, free: 212 kB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003987/0.1116, allocations: 143.7 kB / 354.4 MB, free: 68 kB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004952/0.1121, allocations: 0.5502 MB / 355 MB, free: 15.52 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002746/0.1124, allocations: 168.3 kB / 355.1 MB, free: 15.34 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002576/0.1126, allocations: 215.3 kB / 355.3 MB, free: 15.13 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002883/0.1129, allocations: 255 kB / 355.6 MB, free: 14.88 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 8.481e-05/0.113, allocations: 52 kB / 355.6 MB, free: 14.83 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001258/0.1131, allocations: 56 kB / 355.7 MB, free: 14.78 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001108/0.1133, allocations: 119.6 kB / 355.8 MB, free: 14.66 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002187/0.1135, allocations: 238.8 kB / 356 MB, free: 14.43 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005682/0.1141, allocations: 0.5453 MB / 356.6 MB, free: 13.88 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.6e-06/0.1141, allocations: 0 / 356.6 MB, free: 13.88 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.513e-06/0.1141, allocations: 0 / 356.6 MB, free: 13.88 MB / 302.1 MB Notification: Performance of Transformations before backend: time 9.177e-06/0.1141, allocations: 4 kB / 356.6 MB, free: 13.88 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: 92 * Number of variables: 92 Notification: Performance of Generate backend data structure: time 0.001665/0.1158, allocations: 0.7992 MB / 357.4 MB, free: 13.03 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.405e-05/0.1158, allocations: 8.031 kB / 357.4 MB, free: 13.02 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.589e-05/0.1159, allocations: 74.72 kB / 357.5 MB, free: 12.94 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.995e-05/0.116, allocations: 48.47 kB / 357.5 MB, free: 12.89 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003675/0.1164, allocations: 310.4 kB / 357.8 MB, free: 12.55 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.01e-05/0.1164, allocations: 33.31 kB / 357.8 MB, free: 12.52 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.778e-05/0.1165, allocations: 36.38 kB / 357.9 MB, free: 12.48 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001076/0.1176, allocations: 0.5046 MB / 358.4 MB, free: 11.95 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.772e-05/0.1176, allocations: 0 / 358.4 MB, free: 11.95 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.686e-05/0.1177, allocations: 23.94 kB / 358.4 MB, free: 11.93 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.284e-05/0.1177, allocations: 8 kB / 358.4 MB, free: 11.92 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001328/0.119, allocations: 0.4996 MB / 358.9 MB, free: 11.42 MB / 302.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.002582/0.1216, allocations: 1.667 MB / 360.6 MB, free: 9.609 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001118/0.1227, allocations: 431.6 kB / 361 MB, free: 9.18 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000526/0.1233, allocations: 237.3 kB / 361.2 MB, free: 8.945 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.168e-05/0.1233, allocations: 12.31 kB / 361.2 MB, free: 8.934 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.814e-05/0.1234, allocations: 38.89 kB / 361.3 MB, free: 8.887 MB / 302.1 MB Notification: Performance of pre-optimization done (n=40): time 2.044e-06/0.1234, allocations: 4 kB / 361.3 MB, free: 8.883 MB / 302.1 MB Notification: Performance of matching and sorting (n=40): time 0.005166/0.1286, allocations: 1.365 MB / 362.7 MB, free: 7.469 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.905e-05/0.1287, allocations: 166.2 kB / 362.8 MB, free: 7.27 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003319/0.129, allocations: 267 kB / 363.1 MB, free: 7 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 4.136e-05/0.1291, allocations: 37.7 kB / 363.1 MB, free: 6.957 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000134/0.1292, allocations: 208.3 kB / 363.3 MB, free: 6.75 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001294/0.1293, allocations: 138 kB / 363.5 MB, free: 6.613 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001424/0.1295, allocations: 70.12 kB / 363.5 MB, free: 6.539 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001325/0.1296, allocations: 346.8 kB / 363.9 MB, free: 6.191 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005173/0.1302, allocations: 180.8 kB / 364 MB, free: 6.016 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005826/0.1307, allocations: 278.5 kB / 364.3 MB, free: 5.707 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009949/0.1317, allocations: 434.5 kB / 364.7 MB, free: 5.258 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.326e-06/0.1318, allocations: 4 kB / 364.7 MB, free: 5.254 MB / 302.1 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.001893/0.1337, allocations: 0.6741 MB / 365.4 MB, free: 4.566 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.144e-05/0.1337, allocations: 6.969 kB / 365.4 MB, free: 4.562 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.011e-05/0.1337, allocations: 4 kB / 365.4 MB, free: 4.559 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001338/0.1351, allocations: 321.4 kB / 365.7 MB, free: 4.238 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003457/0.1354, allocations: 75.88 kB / 365.8 MB, free: 4.164 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001317/0.1367, allocations: 1.354 MB / 367.2 MB, free: 2.758 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005492/0.1373, allocations: 79.47 kB / 367.2 MB, free: 2.68 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.564e-05/0.1374, allocations: 16 kB / 367.3 MB, free: 2.664 MB / 302.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.0002434/0.1376, allocations: 161.8 kB / 367.4 MB, free: 2.496 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.745e-05/0.1377, allocations: 35.62 kB / 367.4 MB, free: 2.461 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002237/0.1399, allocations: 0.7236 MB / 368.2 MB, free: 1.727 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.447e-06/0.14, allocations: 4 kB / 368.2 MB, free: 1.723 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.672e-06/0.14, allocations: 0 / 368.2 MB, free: 1.723 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.236e-06/0.14, allocations: 7.984 kB / 368.2 MB, free: 1.715 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006655/0.1407, allocations: 468.9 kB / 368.6 MB, free: 1.207 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.212e-06/0.1407, allocations: 0 / 368.6 MB, free: 1.207 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003088/0.141, allocations: 59.95 kB / 368.7 MB, free: 1.148 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001273/0.1423, allocations: 329.3 kB / 369 MB, free: 0.8203 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.478e-05/0.1423, allocations: 11.98 kB / 369 MB, free: 0.8086 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1809/0.3232, allocations: 1.351 MB / 370.4 MB, free: 25.8 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.288e-06/0.3233, allocations: 0 / 370.4 MB, free: 25.8 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003046/0.3263, allocations: 1.017 MB / 371.4 MB, free: 25.65 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001068/0.3265, allocations: 111.9 kB / 371.5 MB, free: 25.55 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.346e-05/0.3266, allocations: 13.88 kB / 371.5 MB, free: 25.55 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004289/0.327, allocations: 42.89 kB / 371.6 MB, free: 25.55 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.333e-05/0.3271, allocations: 22.75 kB / 371.6 MB, free: 25.55 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.153e-05/0.3271, allocations: 13.12 kB / 371.6 MB, free: 25.55 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002545/0.3274, allocations: 197.7 kB / 371.8 MB, free: 25.48 MB / 302.1 MB Notification: Performance of sort global known variables: time 5.01e-07/0.3274, allocations: 0 / 371.8 MB, free: 25.48 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004671/0.3279, allocations: 110.7 kB / 371.9 MB, free: 25.48 MB / 302.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.002992/0.3309, allocations: 1.576 MB / 373.5 MB, free: 24.73 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001389/0.3323, allocations: 485.2 kB / 374 MB, free: 24.62 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 4.569e-06/0.3323, allocations: 4 kB / 374 MB, free: 24.62 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006205/0.3329, allocations: 265.5 kB / 374.2 MB, free: 24.54 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004948/0.3334, allocations: 41.33 kB / 374.3 MB, free: 24.53 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007094/0.3406, allocations: 4.073 MB / 378.3 MB, free: 22.2 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002324/0.3408, allocations: 0.7989 MB / 379.1 MB, free: 21.49 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001711/0.341, allocations: 31.28 kB / 379.2 MB, free: 21.48 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001486/0.3411, allocations: 122.8 kB / 379.3 MB, free: 21.39 MB / 302.1 MB Notification: Performance of SimCode: time 7.51e-07/0.3412, allocations: 0 / 379.3 MB, free: 21.39 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03651/0.3777, allocations: 9.202 MB / 388.5 MB, free: 18.28 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.55/11.92, allocations: 8.859 kB / 388.5 MB, free: 18.27 MB / 302.1 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingMOSInverter.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingMOSInverter.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingMOSInverter.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingMOSInverter.sim & python3 -m fmpy simulate --output-file Modelica_4.0.0_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.002 Modelica_4_0_0_Modelica_Electrical_Analog_Examples_HeatingMOSInverter.fmu > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingMOSInverter.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingMOSInverter_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/HeatingMOSInverter/HeatingMOSInverter.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingMOSInverter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches