Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Analog.Examples.HeatingRectifier.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(Modelica.Electrical.Analog.Examples.HeatingRectifier,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Capacitor1.v|HeatCapacitor1.T",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Analog.Examples.HeatingRectifier") translateModel(Modelica.Electrical.Analog.Examples.HeatingRectifier,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Capacitor1.v|HeatCapacitor1.T",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Analog.Examples.HeatingRectifier") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001329/0.001329, allocations: 104.1 kB / 17.63 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001638/0.001638, allocations: 214.4 kB / 18.58 MB, free: 4.406 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.542/1.542, allocations: 227.4 MB / 246.8 MB, free: 10.56 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001229/0.001229, allocations: 60.16 kB / 306.9 MB, free: 0.6484 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.112/0.1133, allocations: 50.54 MB / 357.5 MB, free: 14.11 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.HeatingRectifier): time 0.004735/0.1181, allocations: 2.529 MB / 360 MB, free: 11.56 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.00165/0.1197, allocations: 0.7012 MB / 360.7 MB, free: 10.86 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002506/0.12, allocations: 7.938 kB / 360.7 MB, free: 10.85 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001878/0.1202, allocations: 35.64 kB / 360.7 MB, free: 10.81 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002179/0.1205, allocations: 71.33 kB / 360.8 MB, free: 10.74 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004463/0.1209, allocations: 99.75 kB / 360.9 MB, free: 10.64 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003821/0.1213, allocations: 274.7 kB / 361.2 MB, free: 10.38 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002069/0.1215, allocations: 88.33 kB / 361.3 MB, free: 10.29 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002885/0.1218, allocations: 111.6 kB / 361.4 MB, free: 10.18 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002092/0.122, allocations: 123.4 kB / 361.5 MB, free: 10.05 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 4.086e-05/0.1221, allocations: 20 kB / 361.5 MB, free: 10.04 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001195/0.1222, allocations: 40 kB / 361.6 MB, free: 9.996 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 5.487e-05/0.1223, allocations: 59.81 kB / 361.6 MB, free: 9.938 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001224/0.1224, allocations: 119.4 kB / 361.7 MB, free: 9.82 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003447/0.1228, allocations: 287.3 kB / 362 MB, free: 9.539 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.362e-06/0.1228, allocations: 3.984 kB / 362 MB, free: 9.535 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.743e-06/0.1228, allocations: 0 / 362 MB, free: 9.535 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.177e-05/0.1228, allocations: 0 / 362 MB, free: 9.535 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: 49 * Number of variables: 49 Notification: Performance of Generate backend data structure: time 0.0009501/0.1238, allocations: 0.5302 MB / 362.5 MB, free: 8.957 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.241e-05/0.1238, allocations: 12.03 kB / 362.6 MB, free: 8.945 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002084/0.124, allocations: 36.64 kB / 362.6 MB, free: 8.91 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002813/0.1243, allocations: 251.7 kB / 362.8 MB, free: 8.625 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.836e-05/0.1244, allocations: 12.81 kB / 362.8 MB, free: 8.609 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.821e-05/0.1244, allocations: 24.31 kB / 362.9 MB, free: 8.586 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003534/0.1248, allocations: 187.6 kB / 363.1 MB, free: 8.398 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.304e-05/0.1248, allocations: 8 kB / 363.1 MB, free: 8.391 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.471e-05/0.1248, allocations: 8 kB / 363.1 MB, free: 8.383 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.873e-06/0.1248, allocations: 4 kB / 363.1 MB, free: 8.379 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003081/0.1251, allocations: 149.7 kB / 363.2 MB, free: 8.23 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.00146/0.1266, allocations: 0.9297 MB / 364.2 MB, free: 7.191 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003052/0.1269, allocations: 154.6 kB / 364.3 MB, free: 7.031 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000202/0.1271, allocations: 96.83 kB / 364.4 MB, free: 6.934 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.883e-05/0.1272, allocations: 4 kB / 364.4 MB, free: 6.93 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.765e-05/0.1272, allocations: 34.55 kB / 364.4 MB, free: 6.887 MB / 302.1 MB Notification: Performance of pre-optimization done (n=17): time 1.924e-06/0.1272, allocations: 4 kB / 364.4 MB, free: 6.883 MB / 302.1 MB Notification: Performance of matching and sorting (n=17): time 0.001268/0.1285, allocations: 419.3 kB / 364.8 MB, free: 6.445 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.222e-05/0.1285, allocations: 55.41 kB / 364.9 MB, free: 6.379 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001626/0.1287, allocations: 184.2 kB / 365.1 MB, free: 6.191 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.917e-05/0.1287, allocations: 25.7 kB / 365.1 MB, free: 6.16 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.506e-05/0.1288, allocations: 152.1 kB / 365.3 MB, free: 6.008 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.163e-05/0.1289, allocations: 63.14 kB / 365.3 MB, free: 5.945 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.995e-05/0.129, allocations: 37.7 kB / 365.4 MB, free: 5.902 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001104/0.1291, allocations: 330.8 kB / 365.7 MB, free: 5.57 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001168/0.1292, allocations: 47.98 kB / 365.7 MB, free: 5.523 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001198/0.1293, allocations: 72.69 kB / 365.8 MB, free: 5.449 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002352/0.1296, allocations: 132 kB / 365.9 MB, free: 5.316 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.364e-06/0.1296, allocations: 0 / 365.9 MB, free: 5.316 MB / 302.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0004062/0.13, allocations: 218.2 kB / 366.1 MB, free: 5.094 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.671e-05/0.13, allocations: 4 kB / 366.1 MB, free: 5.09 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.931e-06/0.13, allocations: 0 / 366.1 MB, free: 5.09 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001354/0.1314, allocations: 224.6 kB / 366.4 MB, free: 4.867 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001403/0.1316, allocations: 35.92 kB / 366.4 MB, free: 4.832 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004496/0.132, allocations: 0.607 MB / 367 MB, free: 4.199 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001124/0.1321, allocations: 7.969 kB / 367 MB, free: 4.191 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.533e-05/0.1322, allocations: 16.05 kB / 367 MB, free: 4.176 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * 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 (14): * Single equations (assignments): 13 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * 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): 1 system {(1,7)} Notification: Performance of prepare postOptimizeDAE: time 0.0001149/0.1323, allocations: 137.7 kB / 367.2 MB, free: 4.031 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.338e-05/0.1323, allocations: 15.81 kB / 367.2 MB, free: 4.016 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004416/0.1328, allocations: 234.7 kB / 367.4 MB, free: 3.777 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.867e-06/0.1328, allocations: 0 / 367.4 MB, free: 3.777 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.42e-06/0.1328, allocations: 7.922 kB / 367.4 MB, free: 3.77 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.242e-06/0.1328, allocations: 8 kB / 367.4 MB, free: 3.762 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008572/0.1337, allocations: 0.5885 MB / 368 MB, free: 3.113 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.659e-06/0.1337, allocations: 0 / 368 MB, free: 3.113 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001489/0.1339, allocations: 39.86 kB / 368 MB, free: 3.074 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001092/0.135, allocations: 204.6 kB / 368.2 MB, free: 2.871 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.105e-05/0.135, allocations: 4 kB / 368.3 MB, free: 2.867 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005048/0.1355, allocations: 0.6186 MB / 368.9 MB, free: 2.223 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.017e-06/0.1355, allocations: 4.031 kB / 368.9 MB, free: 2.219 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008335/0.1364, allocations: 424.8 kB / 369.3 MB, free: 1.781 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.288e-05/0.1364, allocations: 96.77 kB / 369.4 MB, free: 1.668 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.329e-05/0.1365, allocations: 4 kB / 369.4 MB, free: 1.664 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001427/0.1366, allocations: 20.05 kB / 369.4 MB, free: 1.645 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.795e-05/0.1367, allocations: 7.984 kB / 369.4 MB, free: 1.637 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.261e-05/0.1367, allocations: 4 kB / 369.4 MB, free: 1.633 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001227/0.1368, allocations: 128.1 kB / 369.5 MB, free: 1.508 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.1368, allocations: 0 / 369.5 MB, free: 1.508 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003094/0.1372, allocations: 59.84 kB / 369.6 MB, free: 1.449 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * 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 (10): * Single equations (assignments): 9 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * 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): 1 system {(1,9)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002061/0.1374, allocations: 111.2 kB / 369.7 MB, free: 1.332 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0004263/0.1378, allocations: 151.9 kB / 369.9 MB, free: 1.184 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.575e-06/0.1378, allocations: 0 / 369.9 MB, free: 1.184 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001893/0.138, allocations: 79.95 kB / 369.9 MB, free: 1.105 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003829/0.1384, allocations: 34.14 kB / 370 MB, free: 1.074 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009831/0.1394, allocations: 0.5563 MB / 370.5 MB, free: 500 kB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.2141/0.3535, allocations: 0.7363 MB / 371.3 MB, free: 19.94 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001628/0.3538, allocations: 12.03 kB / 371.3 MB, free: 19.94 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.207e-05/0.3538, allocations: 14.89 kB / 371.3 MB, free: 19.93 MB / 302.1 MB Notification: Performance of SimCode: time 1.743e-06/0.3538, allocations: 0 / 371.3 MB, free: 19.93 MB / 302.1 MB Notification: Performance of Templates: time 0.008416/0.3623, allocations: 2.545 MB / 373.8 MB, free: 19.88 MB / 302.1 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Analog.Examples.HeatingRectifier.makefile (rm -f Modelica_trunk_Modelica.Electrical.Analog.Examples.HeatingRectifier.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Analog.Examples.HeatingRectifier.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Analog.Examples.HeatingRectifier.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.HeatingRectifier.sim & ./Modelica_trunk_Modelica.Electrical.Analog.Examples.HeatingRectifier -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Analog.Examples.HeatingRectifier.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Electrical.Analog.Examples.HeatingRectifier_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/HeatingRectifier/HeatingRectifier.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Analog.Examples.HeatingRectifier.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches