Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate.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.HeatingNPN_NORGate,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|HeatCapacitor1.T",fileNamePrefix="Modelica_trunk_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_trunk_Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001977/0.001977, allocations: 111.4 kB / 17.98 MB, free: 5.352 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002537/0.002537, allocations: 205.8 kB / 18.92 MB, free: 4.422 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.72/1.72, allocations: 227.4 MB / 247.1 MB, free: 9.059 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002177/0.002177, allocations: 60 kB / 307.1 MB, free: 0.707 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1371/0.1393, allocations: 50.54 MB / 357.6 MB, free: 14.17 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate): time 0.008383/0.1477, allocations: 4.978 MB / 362.6 MB, free: 9.164 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.003649/0.1514, allocations: 1.276 MB / 363.9 MB, free: 7.883 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007456/0.1523, allocations: 15.94 kB / 363.9 MB, free: 7.867 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004229/0.1527, allocations: 87.23 kB / 364 MB, free: 7.781 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008433/0.1536, allocations: 218.2 kB / 364.2 MB, free: 7.566 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001056/0.1546, allocations: 271.7 kB / 364.5 MB, free: 7.301 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001715/0.1564, allocations: 1.095 MB / 365.6 MB, free: 6.199 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005862/0.157, allocations: 266.5 kB / 365.8 MB, free: 5.93 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007621/0.1577, allocations: 422.5 kB / 366.2 MB, free: 5.516 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000696/0.1585, allocations: 462 kB / 366.7 MB, free: 5.062 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001753/0.1586, allocations: 84 kB / 366.8 MB, free: 4.98 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002832/0.1589, allocations: 112 kB / 366.9 MB, free: 4.871 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002201/0.1592, allocations: 199.3 kB / 367.1 MB, free: 4.676 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005689/0.1597, allocations: 445.8 kB / 367.5 MB, free: 4.238 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001069/0.1608, allocations: 0.7639 MB / 368.3 MB, free: 3.473 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.143e-06/0.1609, allocations: 3.938 kB / 368.3 MB, free: 3.469 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.944e-06/0.1609, allocations: 0 / 368.3 MB, free: 3.469 MB / 302.1 MB Notification: Performance of Transformations before backend: time 2.232e-05/0.1609, allocations: 0 / 368.3 MB, free: 3.469 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: 158 * Number of variables: 158 Notification: Performance of Generate backend data structure: time 0.003423/0.1643, allocations: 1.254 MB / 369.5 MB, free: 2.145 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.413e-05/0.1644, allocations: 12.03 kB / 369.5 MB, free: 2.133 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002398/0.1647, allocations: 91.81 kB / 369.6 MB, free: 2.043 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008769/0.1655, allocations: 479.5 kB / 370.1 MB, free: 1.535 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.134e-05/0.1656, allocations: 53.69 kB / 370.2 MB, free: 1.484 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001479/0.1658, allocations: 68.31 kB / 370.2 MB, free: 1.418 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00203/0.1678, allocations: 0.6587 MB / 370.9 MB, free: 0.75 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.849e-05/0.1679, allocations: 0 / 370.9 MB, free: 0.75 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.137e-05/0.168, allocations: 24 kB / 370.9 MB, free: 0.7266 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.028e-05/0.168, allocations: 16 kB / 370.9 MB, free: 0.7109 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002387/0.1704, allocations: 0.6961 MB / 371.6 MB, free: 16 kB / 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.2679/0.4383, allocations: 2.372 MB / 374 MB, free: 19.11 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002058/0.4404, allocations: 0.5908 MB / 374.6 MB, free: 18.89 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001075/0.4415, allocations: 328.8 kB / 374.9 MB, free: 18.77 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.486e-05/0.4416, allocations: 13.47 kB / 374.9 MB, free: 18.77 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001474/0.4431, allocations: 426.9 kB / 375.3 MB, free: 18.59 MB / 302.1 MB Notification: Performance of pre-optimization done (n=54): time 3.687e-06/0.4431, allocations: 0.5469 kB / 375.3 MB, free: 18.59 MB / 302.1 MB Notification: Performance of matching and sorting (n=94): time 0.08334/0.5264, allocations: 15.43 MB / 390.8 MB, free: 13.24 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.184e-05/0.5265, allocations: 149.4 kB / 390.9 MB, free: 13.08 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006141/0.5272, allocations: 0.515 MB / 391.4 MB, free: 12.77 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002004/0.5274, allocations: 45.56 kB / 391.5 MB, free: 12.73 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001972/0.5276, allocations: 382.6 kB / 391.8 MB, free: 12.39 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002078/0.5278, allocations: 321.1 kB / 392.2 MB, free: 12.12 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003342/0.5281, allocations: 183.1 kB / 392.3 MB, free: 12 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.000109/0.5283, allocations: 384.7 kB / 392.7 MB, free: 11.63 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001833/0.5301, allocations: 0.7182 MB / 393.4 MB, free: 11.28 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001831/0.5319, allocations: 0.9639 MB / 394.4 MB, free: 10.28 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003456/0.5354, allocations: 1.693 MB / 396.1 MB, free: 8.496 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.092e-06/0.5354, allocations: 4 kB / 396.1 MB, free: 8.492 MB / 302.1 MB Notification: Performance of matching and sorting (n=128) (initialization): time 0.02234/0.5578, allocations: 5.37 MB / 401.5 MB, free: 3.09 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.293e-05/0.5579, allocations: 67.41 kB / 401.5 MB, free: 3.012 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.675e-05/0.5579, allocations: 4 kB / 401.5 MB, free: 3.008 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.03436/0.5923, allocations: 6.844 MB / 408.4 MB, free: 12.16 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007879/0.5931, allocations: 147.7 kB / 408.5 MB, free: 12.01 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007129/0.6003, allocations: 3.172 MB / 411.7 MB, free: 8.789 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001836/0.6021, allocations: 187.8 kB / 411.9 MB, free: 8.605 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001243/0.6023, allocations: 43.98 kB / 411.9 MB, free: 8.562 MB / 318.1 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 (V2.signalSource.count,$PRE.V2.signalSource.count,V2.signalSource.T_start,$PRE.V2.signalSource.T_start,V1.signalSource.count,$PRE.V1.signalSource.count,V1.signalSource.T_start,$PRE.V1.signalSource.T_start,$whenCondition1,$whenCondition2) * 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.0005125/0.6028, allocations: 232.2 kB / 412.1 MB, free: 8.328 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001711/0.603, allocations: 76.56 kB / 412.2 MB, free: 8.254 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02317/0.6262, allocations: 5.108 MB / 417.3 MB, free: 3.133 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.191e-05/0.6262, allocations: 8 kB / 417.3 MB, free: 3.125 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.218e-05/0.6262, allocations: 8 kB / 417.3 MB, free: 3.117 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.622e-05/0.6263, allocations: 3.984 kB / 417.3 MB, free: 3.113 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001761/0.628, allocations: 1.094 MB / 418.4 MB, free: 1.988 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.204e-06/0.6281, allocations: 7.328 kB / 418.4 MB, free: 1.984 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005171/0.6286, allocations: 91.88 kB / 418.5 MB, free: 1.895 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.03479/0.6634, allocations: 6.796 MB / 425.3 MB, free: 11.09 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002709/0.6637, allocations: 27.97 kB / 425.4 MB, free: 11.06 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00609/0.6698, allocations: 3.04 MB / 428.4 MB, free: 7.969 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.166e-06/0.6699, allocations: 0 / 428.4 MB, free: 7.969 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02565/0.6955, allocations: 5.989 MB / 434.4 MB, free: 1.961 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002958/0.6959, allocations: 148.1 kB / 434.5 MB, free: 1.797 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000184/0.696, allocations: 20 kB / 434.6 MB, free: 1.777 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001452/0.6975, allocations: 171.8 kB / 434.7 MB, free: 1.609 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00027/0.6978, allocations: 100.8 kB / 434.8 MB, free: 1.512 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.3e-05/0.6979, allocations: 35.97 kB / 434.9 MB, free: 1.477 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0004485/0.6983, allocations: 354.8 kB / 435.2 MB, free: 1.133 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.9e-07/0.6983, allocations: 0 / 435.2 MB, free: 1.133 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0008108/0.6992, allocations: 256 kB / 435.5 MB, free: 0.8828 MB / 334.1 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.000294/0.6995, allocations: 135.1 kB / 435.6 MB, free: 0.75 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.007139/0.7066, allocations: 2.195 MB / 437.8 MB, free: 14.54 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.957e-06/0.7066, allocations: 0 / 437.8 MB, free: 14.54 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003513/0.7102, allocations: 1.086 MB / 438.9 MB, free: 13.45 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008039/0.711, allocations: 130.5 kB / 439 MB, free: 13.33 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004287/0.7153, allocations: 2.164 MB / 441.2 MB, free: 11.15 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005121/0.7158, allocations: 0.9546 MB / 442.1 MB, free: 10.17 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001713/0.716, allocations: 35.44 kB / 442.1 MB, free: 10.13 MB / 350.1 MB Notification: Performance of SimCode: time 5.61e-07/0.716, allocations: 0 / 442.1 MB, free: 10.13 MB / 350.1 MB Notification: Performance of Templates: time 0.02172/0.7377, allocations: 17.41 MB / 459.6 MB, free: 8.758 MB / 366.1 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate.makefile (rm -f Modelica_trunk_Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate.sim & ./Modelica_trunk_Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/HeatingNPN_NORGate/HeatingNPN_NORGate.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches