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.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: translateModel(Modelica.Electrical.Analog.Examples.HeatingMOSInverter,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Capacitor1.v|HeatCapacitor1.T",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.Analog.Examples.HeatingMOSInverter") translateModel(Modelica.Electrical.Analog.Examples.HeatingMOSInverter,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Capacitor1.v|HeatCapacitor1.T",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.Analog.Examples.HeatingMOSInverter") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001228/0.001228, allocations: 102.9 kB / 17.16 MB, free: 6.316 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.00154/0.00154, allocations: 190 kB / 18.07 MB, free: 5.414 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.552/1.552, allocations: 205.1 MB / 223.9 MB, free: 12.46 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.001108/0.001108, allocations: 59.91 kB / 280 MB, free: 3.57 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1054/0.1066, allocations: 46.61 MB / 326.6 MB, free: 4.887 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.HeatingMOSInverter): time 0.004339/0.111, allocations: 3.13 MB / 329.7 MB, free: 1.73 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001453/0.1124, allocations: 0.8239 MB / 330.5 MB, free: 0.8984 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001459/0.1126, allocations: 11.94 kB / 330.6 MB, free: 0.8867 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001993/0.1128, allocations: 39.69 kB / 330.6 MB, free: 0.8477 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001767/0.113, allocations: 95.16 kB / 330.7 MB, free: 0.7539 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003361/0.1134, allocations: 127.9 kB / 330.8 MB, free: 0.6289 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.000408/0.1138, allocations: 0.5034 MB / 331.3 MB, free: 128 kB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000287/0.1141, allocations: 148.8 kB / 331.5 MB, free: 15.96 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002343/0.1143, allocations: 199.3 kB / 331.7 MB, free: 15.77 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002302/0.1146, allocations: 235 kB / 331.9 MB, free: 15.54 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 6.817e-05/0.1146, allocations: 36 kB / 331.9 MB, free: 15.5 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001095/0.1148, allocations: 43.98 kB / 332 MB, free: 15.46 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 8.198e-05/0.1148, allocations: 91.61 kB / 332.1 MB, free: 15.37 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000187/0.115, allocations: 218.9 kB / 332.3 MB, free: 15.16 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004359/0.1155, allocations: 0.5219 MB / 332.8 MB, free: 14.63 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.478e-06/0.1155, allocations: 4 kB / 332.8 MB, free: 14.63 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.042e-06/0.1155, allocations: 0 / 332.8 MB, free: 14.63 MB / 286.1 MB Notification: Performance of Transformations before backend: time 7.294e-06/0.1155, allocations: 0 / 332.8 MB, free: 14.63 MB / 286.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.001605/0.1171, allocations: 0.7915 MB / 333.6 MB, free: 13.79 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.913e-05/0.1172, allocations: 12.03 kB / 333.6 MB, free: 13.77 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001069/0.1173, allocations: 52.38 kB / 333.6 MB, free: 13.72 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003772/0.1177, allocations: 302.5 kB / 333.9 MB, free: 13.39 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.027e-05/0.1177, allocations: 29.38 kB / 334 MB, free: 13.36 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.789e-05/0.1178, allocations: 36.38 kB / 334 MB, free: 13.32 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001039/0.1188, allocations: 0.5048 MB / 334.5 MB, free: 12.8 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.025e-05/0.1189, allocations: 3.938 kB / 334.5 MB, free: 12.8 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.465e-05/0.1189, allocations: 16 kB / 334.5 MB, free: 12.78 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.128e-05/0.1189, allocations: 8 kB / 334.5 MB, free: 12.77 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001325/0.1203, allocations: 0.4996 MB / 335 MB, free: 12.27 MB / 286.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.002601/0.1229, allocations: 1.667 MB / 336.7 MB, free: 10.46 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00107/0.124, allocations: 431.4 kB / 337.1 MB, free: 10.04 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005105/0.1245, allocations: 245.4 kB / 337.4 MB, free: 9.797 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.793e-05/0.1245, allocations: 8.328 kB / 337.4 MB, free: 9.789 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.037e-05/0.1246, allocations: 42.83 kB / 337.4 MB, free: 9.738 MB / 286.1 MB Notification: Performance of pre-optimization done (n=40): time 1.754e-06/0.1246, allocations: 0 / 337.4 MB, free: 9.738 MB / 286.1 MB Notification: Performance of matching and sorting (n=40): time 0.004908/0.1295, allocations: 1.372 MB / 338.8 MB, free: 8.316 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001417/0.1297, allocations: 158.2 kB / 338.9 MB, free: 8.125 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00035/0.13, allocations: 263 kB / 339.2 MB, free: 7.863 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 4.188e-05/0.1301, allocations: 33.7 kB / 339.2 MB, free: 7.824 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001539/0.1302, allocations: 212.3 kB / 339.4 MB, free: 7.613 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001091/0.1304, allocations: 130 kB / 339.6 MB, free: 7.484 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001393/0.1305, allocations: 82.08 kB / 339.6 MB, free: 7.398 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001415/0.1307, allocations: 346.8 kB / 340 MB, free: 7.051 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004774/0.1311, allocations: 180.7 kB / 340.2 MB, free: 6.871 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005417/0.1317, allocations: 278.5 kB / 340.4 MB, free: 6.566 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009288/0.1326, allocations: 426.5 kB / 340.9 MB, free: 6.125 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.845e-06/0.1326, allocations: 0 / 340.9 MB, free: 6.125 MB / 286.1 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.001768/0.1344, allocations: 0.6819 MB / 341.5 MB, free: 5.43 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.353e-05/0.1345, allocations: 8 kB / 341.5 MB, free: 5.422 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.745e-06/0.1345, allocations: 0 / 341.5 MB, free: 5.422 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001311/0.1358, allocations: 317.4 kB / 341.9 MB, free: 5.105 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003418/0.1361, allocations: 83.88 kB / 341.9 MB, free: 5.023 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001279/0.1374, allocations: 1.346 MB / 343.3 MB, free: 3.625 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004716/0.1379, allocations: 87.7 kB / 343.4 MB, free: 3.539 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.651e-05/0.138, allocations: 16 kB / 343.4 MB, free: 3.523 MB / 286.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.0002507/0.1382, allocations: 149.8 kB / 343.5 MB, free: 3.367 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.725e-05/0.1383, allocations: 35.62 kB / 343.6 MB, free: 3.332 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002129/0.1405, allocations: 0.7277 MB / 344.3 MB, free: 2.59 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.918e-06/0.1405, allocations: 4 kB / 344.3 MB, free: 2.586 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.065e-06/0.1405, allocations: 0 / 344.3 MB, free: 2.586 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.504e-06/0.1405, allocations: 0 / 344.3 MB, free: 2.586 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006169/0.1411, allocations: 465.2 kB / 344.7 MB, free: 2.082 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.568e-06/0.1411, allocations: 3.984 kB / 344.8 MB, free: 2.078 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002802/0.1414, allocations: 63.83 kB / 344.8 MB, free: 2.016 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001153/0.1426, allocations: 325.4 kB / 345.1 MB, free: 1.691 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.511e-05/0.1426, allocations: 8 kB / 345.1 MB, free: 1.684 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001191/0.1438, allocations: 1.362 MB / 346.5 MB, free: 276 kB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.172e-06/0.1438, allocations: 0 / 346.5 MB, free: 276 kB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002398/0.1463, allocations: 1.023 MB / 347.5 MB, free: 15.22 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000104/0.1464, allocations: 116.6 kB / 347.6 MB, free: 15.09 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.864e-05/0.1464, allocations: 8 kB / 347.6 MB, free: 15.08 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003643/0.1468, allocations: 47.94 kB / 347.7 MB, free: 15.03 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.187e-05/0.1469, allocations: 19.97 kB / 347.7 MB, free: 15.01 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.132e-05/0.1469, allocations: 12 kB / 347.7 MB, free: 15 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.000297/0.1472, allocations: 194 kB / 347.9 MB, free: 14.81 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.1472, allocations: 0 / 347.9 MB, free: 14.81 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004514/0.1477, allocations: 115.8 kB / 348 MB, free: 14.7 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.0002495/0.148, allocations: 119 kB / 348.1 MB, free: 14.57 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.00124/0.1492, allocations: 475.8 kB / 348.6 MB, free: 14.11 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.715e-06/0.1492, allocations: 0 / 348.6 MB, free: 14.11 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005646/0.1498, allocations: 252.2 kB / 348.9 MB, free: 13.86 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005093/0.1503, allocations: 55.64 kB / 348.9 MB, free: 13.81 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001731/0.152, allocations: 1.013 MB / 349.9 MB, free: 12.77 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003336/0.1524, allocations: 0.7959 MB / 350.7 MB, free: 11.95 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001523/0.1526, allocations: 34.95 kB / 350.8 MB, free: 11.91 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.197e-05/0.1526, allocations: 23.44 kB / 350.8 MB, free: 11.89 MB / 302.1 MB Notification: Performance of SimCode: time 4.41e-07/0.1526, allocations: 0 / 350.8 MB, free: 11.89 MB / 302.1 MB Notification: Performance of Templates: time 0.01027/0.1629, allocations: 5.444 MB / 356.2 MB, free: 6.445 MB / 302.1 MB make -j1 -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.HeatingMOSInverter.makefile (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 & ./Modelica_3.2.3_Modelica.Electrical.Analog.Examples.HeatingMOSInverter -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.Analog.Examples.HeatingMOSInverter.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Analog.Examples.HeatingMOSInverter_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Analog/Examples/HeatingMOSInverter/HeatingMOSInverter.csv","../files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.HeatingMOSInverter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches