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.HeatingNPN_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.HeatingNPN_NORGate,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|HeatCapacitor1.T",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate") translateModel(Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|HeatCapacitor1.T",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingNPN_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.0008412/0.0008412, allocations: 184.1 kB / 16.71 MB, free: 4.969 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.245/1.245, allocations: 225.7 MB / 243.2 MB, free: 8.465 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.0007714/0.0007715, allocations: 91.92 kB / 294.4 MB, free: 9.508 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002236/0.0002237, allocations: 7.938 kB / 354.2 MB, free: 13.65 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.187/0.1873, allocations: 50.42 MB / 404.6 MB, free: 31.34 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate): time 0.003177/0.1905, allocations: 4.296 MB / 408.9 MB, free: 27.02 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001603/0.1921, allocations: 1.69 MB / 410.6 MB, free: 25.23 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002308/0.1924, allocations: 11.94 kB / 410.6 MB, free: 25.21 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001754/0.1926, allocations: 99.17 kB / 410.7 MB, free: 25.12 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003188/0.1929, allocations: 213.9 kB / 410.9 MB, free: 24.91 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004407/0.1933, allocations: 268.8 kB / 411.1 MB, free: 24.65 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0005856/0.1939, allocations: 1.037 MB / 412.2 MB, free: 23.61 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002954/0.1942, allocations: 227.4 kB / 412.4 MB, free: 23.37 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002662/0.1945, allocations: 362.5 kB / 412.8 MB, free: 23.01 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003272/0.1949, allocations: 422 kB / 413.2 MB, free: 22.6 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 7.981e-05/0.1949, allocations: 44 kB / 413.2 MB, free: 22.55 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001579/0.1951, allocations: 71.97 kB / 413.3 MB, free: 22.48 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001004/0.1952, allocations: 151.3 kB / 413.4 MB, free: 22.34 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002704/0.1955, allocations: 423.5 kB / 413.8 MB, free: 21.91 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005996/0.1961, allocations: 0.9432 MB / 414.8 MB, free: 20.97 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.721e-06/0.1961, allocations: 4 kB / 414.8 MB, free: 20.96 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.493e-06/0.1961, allocations: 0 / 414.8 MB, free: 20.96 MB / 298.7 MB Notification: Performance of Transformations before backend: time 9.829e-06/0.1961, allocations: 0 / 414.8 MB, free: 20.96 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.00177/0.1979, allocations: 1.142 MB / 415.9 MB, free: 19.75 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.862e-05/0.198, allocations: 12.02 kB / 415.9 MB, free: 19.74 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000118/0.1981, allocations: 91.91 kB / 416 MB, free: 19.65 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004319/0.1985, allocations: 487.4 kB / 416.5 MB, free: 19.13 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.122e-05/0.1986, allocations: 49.69 kB / 416.6 MB, free: 19.09 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.398e-05/0.1987, allocations: 64.36 kB / 416.6 MB, free: 19.02 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001163/0.1998, allocations: 0.6783 MB / 417.3 MB, free: 18.34 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.767e-05/0.1999, allocations: 4 kB / 417.3 MB, free: 18.34 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.39e-05/0.1999, allocations: 28 kB / 417.3 MB, free: 18.31 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.03e-05/0.1999, allocations: 16 kB / 417.3 MB, free: 18.29 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001418/0.2014, allocations: 0.7468 MB / 418.1 MB, free: 17.54 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.003045/0.2044, allocations: 2.437 MB / 420.5 MB, free: 14.95 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001188/0.2056, allocations: 0.6413 MB / 421.2 MB, free: 14.3 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005954/0.2062, allocations: 354 kB / 421.5 MB, free: 13.96 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.235e-05/0.2063, allocations: 12.44 kB / 421.5 MB, free: 13.94 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000763/0.2071, allocations: 449.4 kB / 422 MB, free: 13.48 MB / 298.7 MB Notification: Performance of pre-optimization done (n=54): time 2.054e-06/0.2071, allocations: 0 / 422 MB, free: 13.48 MB / 298.7 MB Notification: Performance of matching and sorting (n=94): time 0.06066/0.2677, allocations: 16.74 MB / 438.7 MB, free: 12.64 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.243e-05/0.2679, allocations: 141.5 kB / 438.8 MB, free: 12.47 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000656/0.2685, allocations: 0.5185 MB / 439.4 MB, free: 11.94 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001627/0.2687, allocations: 45.7 kB / 439.4 MB, free: 11.89 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002648/0.269, allocations: 379.8 kB / 439.8 MB, free: 11.51 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003465/0.2693, allocations: 315.4 kB / 440.1 MB, free: 11.2 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.513e-05/0.2694, allocations: 20 kB / 440.1 MB, free: 11.18 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001591/0.2696, allocations: 398.7 kB / 440.5 MB, free: 10.78 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00196/0.2716, allocations: 0.7908 MB / 441.3 MB, free: 9.992 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002252/0.2738, allocations: 1.025 MB / 442.3 MB, free: 8.879 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00416/0.278, allocations: 1.853 MB / 444.2 MB, free: 6.934 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.18e-05/0.2781, allocations: 0 / 444.2 MB, free: 6.934 MB / 314.7 MB Notification: Performance of matching and sorting (n=128) (initialization): time 0.02226/0.3003, allocations: 5.651 MB / 449.8 MB, free: 1.246 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.52e-05/0.3004, allocations: 59.41 kB / 449.9 MB, free: 1.176 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.813e-05/0.3005, allocations: 11.94 kB / 449.9 MB, free: 1.164 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.03257/0.333, allocations: 7.317 MB / 457.2 MB, free: 9.828 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007211/0.3338, allocations: 179.7 kB / 457.4 MB, free: 9.652 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006742/0.3406, allocations: 3.227 MB / 460.6 MB, free: 6.371 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001585/0.3422, allocations: 220 kB / 460.8 MB, free: 6.156 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001424/0.3424, allocations: 51.97 kB / 460.9 MB, free: 6.105 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.0004149/0.3428, allocations: 231.1 kB / 461.1 MB, free: 5.871 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001592/0.343, allocations: 82.97 kB / 461.2 MB, free: 5.789 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02105/0.364, allocations: 5.455 MB / 466.6 MB, free: 320 kB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.475e-05/0.3641, allocations: 12 kB / 466.6 MB, free: 308 kB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.184e-06/0.3641, allocations: 0 / 466.6 MB, free: 308 kB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.942e-05/0.3641, allocations: 11.91 kB / 466.7 MB, free: 296 kB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001349/0.3655, allocations: 1.108 MB / 467.8 MB, free: 15.13 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.632e-06/0.3655, allocations: 7.938 kB / 467.8 MB, free: 15.12 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005093/0.366, allocations: 123.9 kB / 467.9 MB, free: 15 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.03168/0.3977, allocations: 7.281 MB / 475.2 MB, free: 7.703 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002187/0.398, allocations: 31.97 kB / 475.2 MB, free: 7.672 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005503/0.4035, allocations: 3.084 MB / 478.3 MB, free: 4.531 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.845e-06/0.4035, allocations: 0 / 478.3 MB, free: 4.531 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02364/0.4271, allocations: 6.416 MB / 484.7 MB, free: 14.09 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002283/0.4274, allocations: 144.2 kB / 484.8 MB, free: 13.93 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000245/0.4277, allocations: 20.25 kB / 484.9 MB, free: 13.91 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001356/0.429, allocations: 215.8 kB / 485.1 MB, free: 13.7 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002771/0.4293, allocations: 100.9 kB / 485.2 MB, free: 13.6 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001011/0.4294, allocations: 35.97 kB / 485.2 MB, free: 13.56 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0004391/0.4299, allocations: 350.8 kB / 485.5 MB, free: 13.22 MB / 362.7 MB Notification: Performance of sort global known variables: time 3.51e-07/0.4299, allocations: 0 / 485.5 MB, free: 13.22 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0007928/0.4307, allocations: 256 kB / 485.8 MB, free: 12.97 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.0002703/0.431, allocations: 143.2 kB / 485.9 MB, free: 12.82 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.006558/0.4375, allocations: 2.322 MB / 488.3 MB, free: 10.46 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 5.46e-06/0.4376, allocations: 4.312 kB / 488.3 MB, free: 10.46 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003352/0.4409, allocations: 1.167 MB / 489.4 MB, free: 9.297 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007537/0.4417, allocations: 123.2 kB / 489.6 MB, free: 9.18 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003917/0.4456, allocations: 2.182 MB / 491.7 MB, free: 6.98 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004309/0.4461, allocations: 0.9471 MB / 492.7 MB, free: 6.004 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0002917/0.4464, allocations: 58.27 kB / 492.7 MB, free: 5.945 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00011/0.4465, allocations: 31.44 kB / 492.8 MB, free: 5.914 MB / 362.7 MB Notification: Performance of SimCode: time 1.863e-06/0.4465, allocations: 3.938 kB / 492.8 MB, free: 5.91 MB / 362.7 MB Notification: Performance of Templates: time 0.03017/0.4767, allocations: 20.49 MB / 0.5012 GB, free: 1.43 MB / 378.7 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate.sim & ./Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/HeatingNPN_NORGate/HeatingNPN_NORGate.csv","../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches