Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate.conf.json loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 3.2.3+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_3.2.3_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_3.2.3_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate") Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001549/0.001549, allocations: 179.2 kB / 17.36 MB, free: 4.445 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.414/1.414, allocations: 205.6 MB / 223.7 MB, free: 8.945 MB / 186.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.00086/0.0008603, allocations: 94.19 kB / 272.1 MB, free: 8.121 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002486/0.0002488, allocations: 4 kB / 329 MB, free: 15.06 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2729/0.2731, allocations: 47.58 MB / 376.6 MB, free: 45.56 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate): time 0.004563/0.2778, allocations: 4.079 MB / 380.7 MB, free: 42.34 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.002952/0.2808, allocations: 1.707 MB / 382.4 MB, free: 40.74 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000391/0.2812, allocations: 9.219 kB / 382.4 MB, free: 40.74 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002381/0.2814, allocations: 76.12 kB / 382.5 MB, free: 40.68 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0004589/0.2819, allocations: 217.5 kB / 382.7 MB, free: 40.49 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000632/0.2825, allocations: 252.7 kB / 382.9 MB, free: 40.27 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0009885/0.2835, allocations: 0.9917 MB / 383.9 MB, free: 39.69 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004578/0.284, allocations: 217.4 kB / 384.1 MB, free: 39.56 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005899/0.2846, allocations: 359.3 kB / 384.5 MB, free: 39.36 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004762/0.2851, allocations: 407.1 kB / 384.9 MB, free: 39.09 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001086/0.2852, allocations: 42.75 kB / 384.9 MB, free: 39.09 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002385/0.2855, allocations: 63.2 kB / 385 MB, free: 39.08 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001257/0.2856, allocations: 144.8 kB / 385.1 MB, free: 38.96 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003896/0.286, allocations: 411.1 kB / 385.5 MB, free: 38.68 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0008317/0.2868, allocations: 0.9064 MB / 386.4 MB, free: 38 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.15e-06/0.2868, allocations: 0 / 386.4 MB, free: 38 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.974e-06/0.2869, allocations: 0 / 386.4 MB, free: 38 MB / 298.7 MB Notification: Performance of Transformations before backend: time 1.405e-05/0.2869, allocations: 0 / 386.4 MB, free: 38 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: 152 * Number of variables: 152 Notification: Performance of Generate backend data structure: time 0.002107/0.289, allocations: 1.111 MB / 387.5 MB, free: 37.14 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.995e-05/0.289, allocations: 9.938 kB / 387.6 MB, free: 37.14 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001446/0.2892, allocations: 92.58 kB / 387.6 MB, free: 37.09 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005564/0.2898, allocations: 467 kB / 388.1 MB, free: 36.67 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.267e-05/0.2898, allocations: 46.89 kB / 388.1 MB, free: 36.65 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001105/0.2899, allocations: 64.62 kB / 388.2 MB, free: 36.62 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001186/0.2911, allocations: 0.6548 MB / 388.9 MB, free: 35.95 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.879e-05/0.2912, allocations: 8 kB / 388.9 MB, free: 35.95 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.73e-05/0.2912, allocations: 27.98 kB / 388.9 MB, free: 35.92 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.328e-05/0.2912, allocations: 16 kB / 388.9 MB, free: 35.9 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001426/0.2927, allocations: 0.7312 MB / 389.6 MB, free: 35.17 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.003235/0.2959, allocations: 2.378 MB / 392 MB, free: 32.64 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001262/0.2972, allocations: 0.6335 MB / 392.7 MB, free: 32 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006398/0.2979, allocations: 362 kB / 393 MB, free: 31.64 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.963e-05/0.2979, allocations: 8.422 kB / 393 MB, free: 31.63 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008638/0.2988, allocations: 465.3 kB / 393.5 MB, free: 31.15 MB / 298.7 MB Notification: Performance of pre-optimization done (n=54): time 2.915e-06/0.2988, allocations: 0 / 393.5 MB, free: 31.15 MB / 298.7 MB Notification: Performance of matching and sorting (n=94): time 0.06203/0.3608, allocations: 16.72 MB / 410.2 MB, free: 14.34 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.014e-05/0.361, allocations: 145.5 kB / 410.3 MB, free: 14.16 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00052/0.3615, allocations: 490.8 kB / 410.8 MB, free: 13.68 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001607/0.3617, allocations: 45.7 kB / 410.9 MB, free: 13.62 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001684/0.3618, allocations: 360 kB / 411.2 MB, free: 13.27 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001925/0.362, allocations: 319.5 kB / 411.5 MB, free: 12.95 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.901e-05/0.3621, allocations: 16 kB / 411.5 MB, free: 12.93 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 8.486e-05/0.3622, allocations: 382.8 kB / 411.9 MB, free: 12.55 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001777/0.364, allocations: 0.7982 MB / 412.7 MB, free: 11.75 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001771/0.3658, allocations: 0.9968 MB / 413.7 MB, free: 10.68 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003455/0.3692, allocations: 1.807 MB / 415.5 MB, free: 8.789 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.649e-06/0.3693, allocations: 0 / 415.5 MB, free: 8.789 MB / 298.7 MB Notification: Performance of matching and sorting (n=124) (initialization): time 0.02074/0.39, allocations: 5.632 MB / 421.1 MB, free: 3.129 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.601e-05/0.3901, allocations: 70.34 kB / 421.2 MB, free: 3.051 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.674e-05/0.3902, allocations: 7.938 kB / 421.2 MB, free: 3.043 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.03277/0.4229, allocations: 7.32 MB / 428.5 MB, free: 11.71 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007577/0.4237, allocations: 167.8 kB / 428.7 MB, free: 11.54 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006868/0.4306, allocations: 3.211 MB / 431.9 MB, free: 8.277 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001662/0.4323, allocations: 227.8 kB / 432.1 MB, free: 8.055 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001148/0.4324, allocations: 43.98 kB / 432.2 MB, free: 8.012 MB / 314.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 23 * 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 (50): * Single equations (assignments): 46 * Array equations: 0 * Algorithm blocks: 2 * 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 {(5,32), (5,32)} Notification: Performance of prepare postOptimizeDAE: time 0.0004195/0.4329, allocations: 221.6 kB / 432.4 MB, free: 7.785 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001407/0.433, allocations: 75.06 kB / 432.5 MB, free: 7.711 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02235/0.4554, allocations: 5.466 MB / 437.9 MB, free: 2.215 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.044e-05/0.4555, allocations: 16 kB / 438 MB, free: 2.199 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.316e-05/0.4555, allocations: 3.984 kB / 438 MB, free: 2.195 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.319e-05/0.4555, allocations: 3.984 kB / 438 MB, free: 2.191 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001694/0.4572, allocations: 1.087 MB / 439 MB, free: 1.055 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.71e-06/0.4572, allocations: 0 / 439 MB, free: 1.055 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005462/0.4578, allocations: 127.8 kB / 439.2 MB, free: 0.9297 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.03289/0.4907, allocations: 7.289 MB / 446.5 MB, free: 9.621 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002752/0.491, allocations: 23.97 kB / 446.5 MB, free: 9.598 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005701/0.4968, allocations: 3.091 MB / 449.6 MB, free: 6.453 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.05e-06/0.4968, allocations: 0 / 449.6 MB, free: 6.453 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02393/0.5208, allocations: 6.413 MB / 456 MB, free: 8 kB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003656/0.5212, allocations: 144.2 kB / 456.1 MB, free: 15.85 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000172/0.5214, allocations: 19.94 kB / 456.1 MB, free: 15.83 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00134/0.5227, allocations: 219.8 kB / 456.4 MB, free: 15.61 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002766/0.523, allocations: 92.86 kB / 456.5 MB, free: 15.52 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.362e-05/0.5231, allocations: 31.98 kB / 456.5 MB, free: 15.49 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.000422/0.5235, allocations: 330.9 kB / 456.8 MB, free: 15.17 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.5235, allocations: 0 / 456.8 MB, free: 15.17 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0007831/0.5243, allocations: 260 kB / 457.1 MB, free: 14.92 MB / 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 (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 {(5,32), (5,36)} Notification: Performance of Backend phase and start with SimCode phase: time 0.000265/0.5246, allocations: 131.7 kB / 457.2 MB, free: 14.78 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.006666/0.5313, allocations: 2.329 MB / 459.5 MB, free: 12.43 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 4.308e-06/0.5313, allocations: 0 / 459.5 MB, free: 12.43 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00329/0.5346, allocations: 1.148 MB / 460.7 MB, free: 11.29 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000974/0.5356, allocations: 122.2 kB / 460.8 MB, free: 11.16 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004119/0.5397, allocations: 2.15 MB / 462.9 MB, free: 8.988 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006334/0.5404, allocations: 0.9427 MB / 463.9 MB, free: 8.02 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.0003218/0.5407, allocations: 54.08 kB / 463.9 MB, free: 7.965 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001133/0.5408, allocations: 31.38 kB / 464 MB, free: 7.934 MB / 346.7 MB Notification: Performance of SimCode: time 1.744e-06/0.5409, allocations: 0 / 464 MB, free: 7.934 MB / 346.7 MB Notification: Performance of Templates: time 0.03225/0.5731, allocations: 20.36 MB / 484.3 MB, free: 3.574 MB / 362.7 MB make -j1 -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate.makefile (rm -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate.sim & ./Modelica_3.2.3_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Analog/Examples/HeatingPNP_NORGate/HeatingPNP_NORGate.csv","../files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches