Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate.conf.json 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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) 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) Running command: translateModel(Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|HeatCapacitor1.T",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate") translateModel(Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|HeatCapacitor1.T",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0008828/0.0008828, allocations: 178.4 kB / 17.03 MB, free: 5.113 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.214/1.214, allocations: 223.3 MB / 241 MB, free: 11.82 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007811/0.0007811, allocations: 91.98 kB / 292.2 MB, free: 10.89 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002319/0.000232, allocations: 8 kB / 351.8 MB, free: 15.29 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.185/0.1852, allocations: 50.41 MB / 402.2 MB, free: 32.57 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate): time 0.003208/0.1884, allocations: 4.262 MB / 406.5 MB, free: 28.29 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001913/0.1904, allocations: 1.231 MB / 407.7 MB, free: 27.06 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003643/0.1908, allocations: 12 kB / 407.7 MB, free: 27.05 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001976/0.191, allocations: 87.23 kB / 407.8 MB, free: 26.96 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003159/0.1913, allocations: 210.2 kB / 408 MB, free: 26.76 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004653/0.1918, allocations: 231.6 kB / 408.2 MB, free: 26.53 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0005679/0.1924, allocations: 0.9818 MB / 409.2 MB, free: 25.54 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002498/0.1926, allocations: 207.5 kB / 409.4 MB, free: 25.32 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002478/0.1929, allocations: 358.5 kB / 409.8 MB, free: 24.97 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003076/0.1932, allocations: 414.3 kB / 410.2 MB, free: 24.57 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 7.85e-05/0.1933, allocations: 44 kB / 410.2 MB, free: 24.52 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001455/0.1934, allocations: 63.98 kB / 410.3 MB, free: 24.46 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 8.353e-05/0.1935, allocations: 155.3 kB / 410.4 MB, free: 24.31 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001032/0.1936, allocations: 173.3 kB / 410.6 MB, free: 24.13 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004125/0.194, allocations: 0.7377 MB / 411.3 MB, free: 23.39 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.388e-06/0.194, allocations: 0 / 411.3 MB, free: 23.39 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.563e-06/0.1941, allocations: 0 / 411.3 MB, free: 23.39 MB / 298.7 MB Notification: Performance of Transformations before backend: time 1.371e-05/0.1941, allocations: 4 kB / 411.3 MB, free: 23.39 MB / 298.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 158 * Number of variables: 158 Notification: Performance of Generate backend data structure: time 0.001811/0.1959, allocations: 1.157 MB / 412.5 MB, free: 22.16 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.163e-05/0.1959, allocations: 12.02 kB / 412.5 MB, free: 22.15 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000139/0.1961, allocations: 94.92 kB / 412.6 MB, free: 22.06 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004078/0.1965, allocations: 458.6 kB / 413 MB, free: 21.57 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.619e-05/0.1965, allocations: 49.31 kB / 413.1 MB, free: 21.52 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.049e-05/0.1966, allocations: 64 kB / 413.2 MB, free: 21.46 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001144/0.1978, allocations: 0.6741 MB / 413.8 MB, free: 20.78 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.54e-05/0.1978, allocations: 0 / 413.8 MB, free: 20.78 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.744e-05/0.1979, allocations: 28 kB / 413.9 MB, free: 20.75 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.038e-05/0.1979, allocations: 16 kB / 413.9 MB, free: 20.73 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001422/0.1993, allocations: 0.7624 MB / 414.6 MB, free: 19.97 MB / 298.7 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.003017/0.2023, allocations: 2.433 MB / 417.1 MB, free: 17.39 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001223/0.2036, allocations: 0.6373 MB / 417.7 MB, free: 16.74 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006632/0.2042, allocations: 362 kB / 418.1 MB, free: 16.38 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.466e-05/0.2043, allocations: 4.438 kB / 418.1 MB, free: 16.38 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008127/0.2051, allocations: 457.4 kB / 418.5 MB, free: 15.91 MB / 298.7 MB Notification: Performance of pre-optimization done (n=54): time 1.963e-06/0.2051, allocations: 4 kB / 418.5 MB, free: 15.9 MB / 298.7 MB Notification: Performance of matching and sorting (n=94): time 0.06638/0.2715, allocations: 16.73 MB / 435.2 MB, free: 15.07 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.456e-05/0.2716, allocations: 149.5 kB / 435.4 MB, free: 14.89 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006091/0.2723, allocations: 0.5145 MB / 435.9 MB, free: 14.37 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001622/0.2724, allocations: 45.7 kB / 435.9 MB, free: 14.32 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002523/0.2727, allocations: 379.8 kB / 436.3 MB, free: 13.94 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002436/0.2729, allocations: 315.5 kB / 436.6 MB, free: 13.62 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.747e-05/0.273, allocations: 20 kB / 436.6 MB, free: 13.61 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001351/0.2732, allocations: 382.8 kB / 437 MB, free: 13.22 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002015/0.2752, allocations: 0.7986 MB / 437.8 MB, free: 12.43 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002154/0.2774, allocations: 1.029 MB / 438.8 MB, free: 11.31 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002043/0.2794, allocations: 0.8769 MB / 439.7 MB, free: 10.42 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.513e-06/0.2794, allocations: 4 kB / 439.7 MB, free: 10.42 MB / 314.7 MB Notification: Performance of matching and sorting (n=128) (initialization): time 0.02349/0.3029, allocations: 5.659 MB / 445.4 MB, free: 4.723 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.981e-05/0.303, allocations: 63.39 kB / 445.5 MB, free: 4.648 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.588e-05/0.3031, allocations: 11.94 kB / 445.5 MB, free: 4.637 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.03675/0.3398, allocations: 7.317 MB / 452.8 MB, free: 13.3 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007339/0.3406, allocations: 183.7 kB / 453 MB, free: 13.12 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007004/0.3476, allocations: 3.215 MB / 456.2 MB, free: 9.855 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001733/0.3494, allocations: 224 kB / 456.4 MB, free: 9.637 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001794/0.3496, allocations: 51.97 kB / 456.4 MB, free: 9.586 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 27 * Number of states: 0 () * Number of discrete variables: 10 ($whenCondition2,$whenCondition1,$PRE.V1.signalSource.T_start,V1.signalSource.T_start,$PRE.V1.signalSource.count,V1.signalSource.count,$PRE.V2.signalSource.T_start,V2.signalSource.T_start,$PRE.V2.signalSource.count,V2.signalSource.count) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (54): * Single equations (assignments): 50 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {5 32,5 32} Notification: Performance of prepare postOptimizeDAE: time 0.0005043/0.3501, allocations: 225.7 kB / 456.7 MB, free: 9.355 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001902/0.3503, allocations: 83.05 kB / 456.7 MB, free: 9.273 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02344/0.3738, allocations: 5.462 MB / 462.2 MB, free: 3.789 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.213e-05/0.3738, allocations: 16 kB / 462.2 MB, free: 3.773 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.185e-06/0.3738, allocations: 0 / 462.2 MB, free: 3.773 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.398e-05/0.3739, allocations: 3.984 kB / 462.2 MB, free: 3.77 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001589/0.3755, allocations: 1.108 MB / 463.3 MB, free: 2.613 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.325e-06/0.3755, allocations: 0 / 463.3 MB, free: 2.613 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000617/0.3761, allocations: 119.9 kB / 463.5 MB, free: 2.496 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.03654/0.4127, allocations: 7.301 MB / 470.8 MB, free: 11.18 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002002/0.4129, allocations: 23.98 kB / 470.8 MB, free: 11.16 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005756/0.4187, allocations: 3.064 MB / 473.8 MB, free: 8.035 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.078e-06/0.4187, allocations: 7.953 kB / 473.8 MB, free: 8.027 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02577/0.4445, allocations: 6.417 MB / 480.3 MB, free: 1.582 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001951/0.4447, allocations: 148.1 kB / 480.4 MB, free: 1.418 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002017/0.445, allocations: 24.06 kB / 480.4 MB, free: 1.395 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001468/0.4464, allocations: 211.9 kB / 480.6 MB, free: 1.188 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002423/0.4467, allocations: 104.8 kB / 480.7 MB, free: 1.086 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.15e-05/0.4468, allocations: 31.98 kB / 480.8 MB, free: 1.055 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0004021/0.4472, allocations: 350.8 kB / 481.1 MB, free: 0.7109 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.4472, allocations: 0 / 481.1 MB, free: 0.7109 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0007363/0.4479, allocations: 260 kB / 481.4 MB, free: 468 kB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (HeatCapacitor1.T) * Number of discrete variables: 6 ($whenCondition2,$whenCondition1,V1.signalSource.T_start,V1.signalSource.count,V2.signalSource.T_start,V2.signalSource.count) * Number of discrete states: 2 (V2.signalSource.count,V1.signalSource.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (22): * Single equations (assignments): 16 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 4 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {5 32,5 36} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002664/0.4482, allocations: 139 kB / 481.5 MB, free: 316 kB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.007045/0.4553, allocations: 2.321 MB / 483.8 MB, free: 13.96 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 6.653e-06/0.4553, allocations: 3.938 kB / 483.8 MB, free: 13.95 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00342/0.4587, allocations: 1.152 MB / 485 MB, free: 12.8 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007648/0.4595, allocations: 139 kB / 485.1 MB, free: 12.68 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003736/0.4633, allocations: 2.138 MB / 487.3 MB, free: 10.51 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000481/0.4638, allocations: 0.9471 MB / 488.2 MB, free: 9.535 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001601/0.4639, allocations: 35.44 kB / 488.2 MB, free: 9.5 MB / 362.7 MB Notification: Performance of SimCode: time 3.5e-07/0.4639, allocations: 0 / 488.2 MB, free: 9.5 MB / 362.7 MB Notification: Performance of Templates: time 0.02077/0.4847, allocations: 17.34 MB / 0.4937 GB, free: 8.184 MB / 378.7 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate.sim & ./Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/HeatingPNP_NORGate/HeatingPNP_NORGate.csv","../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches