Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) 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) 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) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00143/0.00143, allocations: 110.9 kB / 17.74 MB, free: 5.352 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00162/0.00162, allocations: 192.5 kB / 18.67 MB, free: 4.426 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.327/1.327, allocations: 222.9 MB / 242.4 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001054/0.001054, allocations: 51.92 kB / 352 MB, free: 3.227 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2669/0.268, allocations: 49.43 MB / 401.4 MB, free: 8.703 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate): time 0.005753/0.2738, allocations: 4.953 MB / 406.4 MB, free: 3.855 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002448/0.2763, allocations: 1.268 MB / 407.6 MB, free: 2.578 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004965/0.2768, allocations: 12 kB / 407.7 MB, free: 2.566 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003559/0.2772, allocations: 126.7 kB / 407.8 MB, free: 2.441 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006713/0.2779, allocations: 249.7 kB / 408 MB, free: 2.195 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009472/0.2788, allocations: 311.5 kB / 408.3 MB, free: 1.891 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.001926/0.2808, allocations: 1.111 MB / 409.4 MB, free: 0.7773 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006086/0.2814, allocations: 262.5 kB / 409.7 MB, free: 0.4961 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008774/0.2823, allocations: 422.5 kB / 410.1 MB, free: 84 kB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00103/0.2833, allocations: 462.1 kB / 410.6 MB, free: 15.62 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003423/0.2837, allocations: 88 kB / 410.6 MB, free: 15.54 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004516/0.2842, allocations: 116 kB / 410.8 MB, free: 15.43 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000286/0.2845, allocations: 191.3 kB / 410.9 MB, free: 15.24 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008049/0.2853, allocations: 441.8 kB / 411.4 MB, free: 14.8 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001606/0.2869, allocations: 1.005 MB / 412.4 MB, free: 13.8 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.821e-06/0.2869, allocations: 0 / 412.4 MB, free: 13.8 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.565e-06/0.2869, allocations: 0 / 412.4 MB, free: 13.8 MB / 334.1 MB Notification: Performance of Transformations before backend: time 4.701e-05/0.287, allocations: 7.984 kB / 412.4 MB, free: 13.79 MB / 334.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.004101/0.2911, allocations: 1.258 MB / 413.6 MB, free: 12.47 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.926e-05/0.2912, allocations: 11.97 kB / 413.7 MB, free: 12.46 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000317/0.2915, allocations: 95.91 kB / 413.8 MB, free: 12.36 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001115/0.2926, allocations: 483.5 kB / 414.2 MB, free: 11.85 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.32e-05/0.2927, allocations: 45.69 kB / 414.3 MB, free: 11.8 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001698/0.2929, allocations: 64.38 kB / 414.3 MB, free: 11.74 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002253/0.2952, allocations: 0.6587 MB / 415 MB, free: 11.08 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.834e-05/0.2952, allocations: 0 / 415 MB, free: 11.08 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.561e-05/0.2953, allocations: 28 kB / 415 MB, free: 11.05 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.122e-05/0.2954, allocations: 16 kB / 415 MB, free: 11.04 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002614/0.298, allocations: 0.6922 MB / 415.7 MB, free: 10.34 MB / 334.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.005925/0.3039, allocations: 2.382 MB / 418.1 MB, free: 7.809 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002152/0.3061, allocations: 0.5827 MB / 418.7 MB, free: 7.215 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001137/0.3073, allocations: 334 kB / 419 MB, free: 6.887 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.806e-05/0.3074, allocations: 8.422 kB / 419 MB, free: 6.879 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001371/0.3087, allocations: 425.3 kB / 419.4 MB, free: 6.438 MB / 334.1 MB Notification: Performance of pre-optimization done (n=54): time 3.106e-06/0.3088, allocations: 0 / 419.4 MB, free: 6.438 MB / 334.1 MB Notification: Performance of matching and sorting (n=94): time 0.09378/0.4025, allocations: 15.42 MB / 434.9 MB, free: 6.918 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001202/0.4027, allocations: 141.5 kB / 435 MB, free: 6.75 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001011/0.4038, allocations: 0.5224 MB / 435.5 MB, free: 6.215 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002909/0.4041, allocations: 45.7 kB / 435.6 MB, free: 6.164 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004679/0.4045, allocations: 391.8 kB / 436 MB, free: 5.773 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005502/0.4051, allocations: 311.5 kB / 436.3 MB, free: 5.465 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006507/0.4058, allocations: 182.4 kB / 436.4 MB, free: 5.281 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0002376/0.406, allocations: 402.6 kB / 436.8 MB, free: 4.879 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003115/0.4092, allocations: 0.7205 MB / 437.5 MB, free: 4.156 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003409/0.4126, allocations: 0.9511 MB / 438.5 MB, free: 3.121 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006476/0.4191, allocations: 1.701 MB / 440.2 MB, free: 1.324 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.554e-06/0.4192, allocations: 0 / 440.2 MB, free: 1.324 MB / 350.1 MB Notification: Performance of matching and sorting (n=128) (initialization): time 0.03373/0.4529, allocations: 5.37 MB / 445.6 MB, free: 11.92 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.003e-05/0.453, allocations: 59.41 kB / 445.6 MB, free: 11.85 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.392e-05/0.453, allocations: 12 kB / 445.6 MB, free: 11.84 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.05028/0.5033, allocations: 6.852 MB / 452.5 MB, free: 4.973 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001093/0.5045, allocations: 143.8 kB / 452.6 MB, free: 4.832 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01081/0.5153, allocations: 3.168 MB / 455.8 MB, free: 1.609 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002283/0.5176, allocations: 183.9 kB / 456 MB, free: 1.43 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002199/0.5179, allocations: 47.97 kB / 456 MB, free: 1.383 MB / 366.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.0005927/0.5185, allocations: 222.1 kB / 456.2 MB, free: 1.156 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002479/0.5188, allocations: 83.05 kB / 456.3 MB, free: 1.074 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03248/0.5512, allocations: 5.103 MB / 461.4 MB, free: 11.95 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.444e-05/0.5513, allocations: 8 kB / 461.4 MB, free: 11.95 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.926e-06/0.5514, allocations: 0 / 461.4 MB, free: 11.95 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.04e-05/0.5514, allocations: 11.97 kB / 461.4 MB, free: 11.93 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002337/0.5537, allocations: 1.104 MB / 462.6 MB, free: 10.78 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.264e-05/0.5538, allocations: 0 / 462.6 MB, free: 10.78 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008181/0.5546, allocations: 91.83 kB / 462.6 MB, free: 10.69 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.04906/0.6037, allocations: 6.797 MB / 469.4 MB, free: 3.875 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002853/0.604, allocations: 31.97 kB / 469.5 MB, free: 3.844 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008925/0.613, allocations: 3.048 MB / 472.5 MB, free: 0.7383 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.728e-06/0.613, allocations: 4.125 kB / 472.5 MB, free: 0.7344 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03436/0.6474, allocations: 5.979 MB / 478.5 MB, free: 10.72 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003049/0.6478, allocations: 148.1 kB / 478.6 MB, free: 10.56 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002597/0.648, allocations: 20.06 kB / 478.7 MB, free: 10.54 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00197/0.65, allocations: 175.7 kB / 478.8 MB, free: 10.37 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004137/0.6504, allocations: 92.88 kB / 478.9 MB, free: 10.28 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001587/0.6506, allocations: 35.97 kB / 479 MB, free: 10.24 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.000661/0.6513, allocations: 354.8 kB / 479.3 MB, free: 9.895 MB / 398.1 MB Notification: Performance of sort global known variables: time 2.91e-07/0.6513, allocations: 0 / 479.3 MB, free: 9.895 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.001301/0.6526, allocations: 260 kB / 479.6 MB, free: 9.641 MB / 398.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.0003365/0.653, allocations: 131.3 kB / 479.7 MB, free: 9.504 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.01032/0.6633, allocations: 2.185 MB / 481.9 MB, free: 7.297 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 8.346e-06/0.6634, allocations: 0 / 481.9 MB, free: 7.297 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00549/0.6689, allocations: 1.093 MB / 483 MB, free: 6.203 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0011/0.67, allocations: 122.2 kB / 483.1 MB, free: 6.078 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005426/0.6754, allocations: 1.809 MB / 484.9 MB, free: 4.238 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006079/0.6761, allocations: 0.9545 MB / 485.9 MB, free: 3.258 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002458/0.6764, allocations: 39.44 kB / 485.9 MB, free: 3.219 MB / 398.1 MB Notification: Performance of SimCode: time 1.012e-06/0.6764, allocations: 3.938 kB / 485.9 MB, free: 3.215 MB / 398.1 MB Notification: Performance of Templates: time 0.02939/0.7058, allocations: 17.57 MB / 0.4917 GB, free: 1.66 MB / 414.1 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/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_4.0.0_Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches