Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate.conf.json loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-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(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001413/0.001413, allocations: 177.9 kB / 16.71 MB, free: 5.09 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.257/1.257, allocations: 225.7 MB / 243.2 MB, free: 8.492 MB / 202.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007666/0.0007666, allocations: 95.5 kB / 294.4 MB, free: 9.516 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002203/0.0002203, allocations: 7.938 kB / 354.1 MB, free: 13.66 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.197/0.1973, allocations: 50.42 MB / 404.6 MB, free: 31.36 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate): time 0.003312/0.2006, allocations: 4.278 MB / 408.8 MB, free: 27.06 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001995/0.2027, allocations: 1.699 MB / 410.5 MB, free: 25.25 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000277/0.203, allocations: 19.88 kB / 410.6 MB, free: 25.23 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001887/0.2032, allocations: 87.23 kB / 410.7 MB, free: 25.15 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003365/0.2035, allocations: 219.8 kB / 410.9 MB, free: 24.93 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005028/0.204, allocations: 267.7 kB / 411.1 MB, free: 24.67 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0005708/0.2046, allocations: 1.04 MB / 412.2 MB, free: 23.62 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002614/0.2049, allocations: 219.4 kB / 412.4 MB, free: 23.39 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002541/0.2051, allocations: 374.5 kB / 412.7 MB, free: 23.03 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003183/0.2055, allocations: 418 kB / 413.2 MB, free: 22.62 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 7.182e-05/0.2055, allocations: 44 kB / 413.2 MB, free: 22.57 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001436/0.2057, allocations: 63.98 kB / 413.3 MB, free: 22.51 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 9.459e-05/0.2058, allocations: 147.3 kB / 413.4 MB, free: 22.37 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002536/0.2061, allocations: 427.5 kB / 413.8 MB, free: 21.94 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005142/0.2066, allocations: 0.9354 MB / 414.8 MB, free: 21 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.389e-06/0.2066, allocations: 4 kB / 414.8 MB, free: 21 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.064e-06/0.2066, allocations: 0 / 414.8 MB, free: 21 MB / 298.7 MB Notification: Performance of Transformations before backend: time 7.814e-06/0.2066, allocations: 0 / 414.8 MB, free: 21 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.001779/0.2084, allocations: 1.15 MB / 415.9 MB, free: 19.78 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.089e-05/0.2084, allocations: 8.031 kB / 415.9 MB, free: 19.77 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001119/0.2086, allocations: 95.91 kB / 416 MB, free: 19.68 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004091/0.209, allocations: 483.4 kB / 416.5 MB, free: 19.16 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.117e-05/0.209, allocations: 49.69 kB / 416.5 MB, free: 19.12 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.372e-05/0.2091, allocations: 64.36 kB / 416.6 MB, free: 19.05 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00113/0.2102, allocations: 0.686 MB / 417.3 MB, free: 18.36 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.871e-05/0.2103, allocations: 0 / 417.3 MB, free: 18.36 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.315e-05/0.2103, allocations: 28 kB / 417.3 MB, free: 18.34 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.698e-06/0.2103, allocations: 12 kB / 417.3 MB, free: 18.32 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001388/0.2117, allocations: 0.7547 MB / 418.1 MB, free: 17.57 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.002942/0.2147, allocations: 2.437 MB / 420.5 MB, free: 14.98 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001201/0.2159, allocations: 0.6373 MB / 421.2 MB, free: 14.33 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006052/0.2165, allocations: 358 kB / 421.5 MB, free: 13.98 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.06e-05/0.2166, allocations: 8.422 kB / 421.5 MB, free: 13.97 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007931/0.2174, allocations: 457.4 kB / 422 MB, free: 13.5 MB / 298.7 MB Notification: Performance of pre-optimization done (n=54): time 2.003e-06/0.2174, allocations: 0 / 422 MB, free: 13.5 MB / 298.7 MB Notification: Performance of matching and sorting (n=94): time 0.06123/0.2786, allocations: 16.73 MB / 438.7 MB, free: 12.66 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001022/0.2788, allocations: 149.5 kB / 438.8 MB, free: 12.49 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006175/0.2794, allocations: 0.5146 MB / 439.3 MB, free: 11.96 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001472/0.2795, allocations: 41.7 kB / 439.4 MB, free: 11.92 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002645/0.2798, allocations: 387.8 kB / 439.8 MB, free: 11.53 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002474/0.2801, allocations: 315.4 kB / 440.1 MB, free: 11.21 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.379e-05/0.2802, allocations: 20 kB / 440.1 MB, free: 11.2 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001493/0.2803, allocations: 390.7 kB / 440.5 MB, free: 10.8 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001939/0.2823, allocations: 0.7947 MB / 441.3 MB, free: 10.01 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002059/0.2843, allocations: 1.037 MB / 442.3 MB, free: 8.887 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003877/0.2882, allocations: 1.837 MB / 444.1 MB, free: 6.957 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.807e-06/0.2882, allocations: 4 kB / 444.2 MB, free: 6.953 MB / 314.7 MB Notification: Performance of matching and sorting (n=128) (initialization): time 0.02175/0.31, allocations: 5.647 MB / 449.8 MB, free: 1.27 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.807e-05/0.3101, allocations: 67.39 kB / 449.9 MB, free: 1.191 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.27e-05/0.3102, allocations: 11.94 kB / 449.9 MB, free: 1.18 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.03226/0.3424, allocations: 7.321 MB / 457.2 MB, free: 9.84 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007294/0.3432, allocations: 175.8 kB / 457.4 MB, free: 9.668 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006729/0.35, allocations: 3.211 MB / 460.6 MB, free: 6.402 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001595/0.3516, allocations: 219.8 kB / 460.8 MB, free: 6.188 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001985/0.3518, allocations: 47.97 kB / 460.8 MB, free: 6.141 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 (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.0004895/0.3523, allocations: 227.2 kB / 461.1 MB, free: 5.91 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001883/0.3525, allocations: 86.97 kB / 461.1 MB, free: 5.824 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.021/0.3735, allocations: 5.459 MB / 466.6 MB, free: 352 kB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.777e-05/0.3736, allocations: 8 kB / 466.6 MB, free: 344 kB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.864e-06/0.3736, allocations: 0 / 466.6 MB, free: 344 kB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.392e-05/0.3737, allocations: 11.91 kB / 466.6 MB, free: 332 kB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001639/0.3753, allocations: 1.104 MB / 467.7 MB, free: 15.17 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.318e-05/0.3753, allocations: 4.188 kB / 467.7 MB, free: 15.16 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005718/0.3759, allocations: 131.8 kB / 467.9 MB, free: 15.04 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.03185/0.4078, allocations: 7.289 MB / 475.2 MB, free: 7.73 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002066/0.408, allocations: 27.98 kB / 475.2 MB, free: 7.703 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005552/0.4136, allocations: 3.076 MB / 478.3 MB, free: 4.57 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.575e-06/0.4136, allocations: 0 / 478.3 MB, free: 4.57 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02333/0.437, allocations: 6.428 MB / 484.7 MB, free: 14.11 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000213/0.4372, allocations: 144.1 kB / 484.8 MB, free: 13.95 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001955/0.4374, allocations: 19.98 kB / 484.8 MB, free: 13.93 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001315/0.4388, allocations: 211.8 kB / 485.1 MB, free: 13.73 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002591/0.439, allocations: 96.91 kB / 485.1 MB, free: 13.63 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.261e-05/0.4391, allocations: 31.97 kB / 485.2 MB, free: 13.6 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0003913/0.4395, allocations: 358.8 kB / 485.5 MB, free: 13.25 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.4395, allocations: 0 / 485.5 MB, free: 13.25 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0007143/0.4403, allocations: 256 kB / 485.8 MB, free: 13 MB / 362.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.0002465/0.4405, allocations: 132.4 kB / 485.9 MB, free: 12.86 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.006391/0.4469, allocations: 2.324 MB / 488.2 MB, free: 10.5 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 3.176e-06/0.4469, allocations: 0 / 488.2 MB, free: 10.5 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003235/0.4502, allocations: 1.161 MB / 489.4 MB, free: 9.348 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006478/0.4508, allocations: 123.2 kB / 489.5 MB, free: 9.23 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003648/0.4545, allocations: 2.201 MB / 491.7 MB, free: 7.012 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004484/0.455, allocations: 0.951 MB / 492.7 MB, free: 6.031 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0002963/0.4553, allocations: 62.2 kB / 492.7 MB, free: 5.969 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001148/0.4554, allocations: 31.44 kB / 492.8 MB, free: 5.938 MB / 362.7 MB Notification: Performance of SimCode: time 3.11e-07/0.4554, allocations: 0 / 492.8 MB, free: 5.938 MB / 362.7 MB Notification: Performance of Templates: time 0.03053/0.4859, allocations: 20.43 MB / 0.5012 GB, free: 1.516 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/jenkins/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