Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate.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 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_OrGate,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|HeatCapacitor1.T",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate") translateModel(Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|HeatCapacitor1.T",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001338/0.001343, allocations: 100.2 kB / 18.39 MB, free: 4.66 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.00131/0.00131, allocations: 188.3 kB / 19.33 MB, free: 3.738 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.366/1.366, allocations: 205.1 MB / 225.2 MB, free: 12.2 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001377/0.001377, allocations: 55.91 kB / 329.2 MB, free: 3.285 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08573/0.08712, allocations: 46.61 MB / 375.8 MB, free: 4.57 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate): time 0.209/0.2962, allocations: 4.703 MB / 380.5 MB, free: 10.34 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002454/0.2987, allocations: 1.276 MB / 381.8 MB, free: 10.31 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003596/0.2991, allocations: 14 kB / 381.8 MB, free: 10.31 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002767/0.2994, allocations: 113.3 kB / 381.9 MB, free: 10.24 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004298/0.2999, allocations: 242.2 kB / 382.2 MB, free: 10.12 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007354/0.3006, allocations: 303.5 kB / 382.5 MB, free: 10.11 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.001122/0.3017, allocations: 1.062 MB / 383.5 MB, free: 9.676 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004588/0.3022, allocations: 259.6 kB / 383.8 MB, free: 9.555 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006439/0.3029, allocations: 406.5 kB / 384.2 MB, free: 9.375 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005432/0.3034, allocations: 457.8 kB / 384.6 MB, free: 9.16 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001311/0.3036, allocations: 85.72 kB / 384.7 MB, free: 9.16 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002329/0.3038, allocations: 104.8 kB / 384.8 MB, free: 9.156 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001559/0.304, allocations: 188.1 kB / 385 MB, free: 9.035 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003636/0.3043, allocations: 434 kB / 385.4 MB, free: 8.777 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001009/0.3054, allocations: 0.9749 MB / 386.4 MB, free: 8.414 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.989e-06/0.3054, allocations: 0 / 386.4 MB, free: 8.414 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.405e-06/0.3054, allocations: 0 / 386.4 MB, free: 8.414 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.179e-05/0.3054, allocations: 0 / 386.4 MB, free: 8.414 MB / 318.1 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.002439/0.3078, allocations: 1.21 MB / 387.6 MB, free: 7.59 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.168e-05/0.3079, allocations: 9.906 kB / 387.6 MB, free: 7.59 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002077/0.3081, allocations: 88.78 kB / 387.7 MB, free: 7.547 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007216/0.3088, allocations: 474.6 kB / 388.2 MB, free: 7.184 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.169e-05/0.3089, allocations: 48.81 kB / 388.2 MB, free: 7.16 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001043/0.309, allocations: 62.67 kB / 388.3 MB, free: 7.141 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001372/0.3104, allocations: 0.6384 MB / 388.9 MB, free: 6.898 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.867e-05/0.3104, allocations: 0 / 388.9 MB, free: 6.898 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.592e-05/0.3105, allocations: 30.3 kB / 388.9 MB, free: 6.879 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.839e-05/0.3105, allocations: 15 kB / 389 MB, free: 6.879 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001646/0.3122, allocations: 0.6749 MB / 389.6 MB, free: 6.676 MB / 318.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.003642/0.3158, allocations: 2.304 MB / 391.9 MB, free: 5.25 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001448/0.3173, allocations: 0.5839 MB / 392.5 MB, free: 5.023 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007143/0.318, allocations: 331.2 kB / 392.8 MB, free: 4.906 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.147e-05/0.3181, allocations: 13.36 kB / 392.9 MB, free: 4.898 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009286/0.319, allocations: 426.7 kB / 393.3 MB, free: 4.711 MB / 318.1 MB Notification: Performance of pre-optimization done (n=54): time 2.555e-06/0.319, allocations: 0 / 393.3 MB, free: 4.711 MB / 318.1 MB Notification: Performance of matching and sorting (n=94): time 0.06478/0.3838, allocations: 15.42 MB / 408.7 MB, free: 13.83 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001021/0.3839, allocations: 145.5 kB / 408.8 MB, free: 13.66 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006685/0.3846, allocations: 494.8 kB / 409.3 MB, free: 13.16 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002353/0.3849, allocations: 41.7 kB / 409.4 MB, free: 13.11 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002591/0.3851, allocations: 366.6 kB / 409.7 MB, free: 12.75 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002976/0.3854, allocations: 315.8 kB / 410 MB, free: 12.45 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003479/0.3858, allocations: 174.5 kB / 410.2 MB, free: 12.27 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001677/0.386, allocations: 386.8 kB / 410.6 MB, free: 11.88 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001949/0.3879, allocations: 0.7202 MB / 411.3 MB, free: 11.16 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002095/0.39, allocations: 0.9273 MB / 412.2 MB, free: 10.15 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004051/0.3941, allocations: 1.662 MB / 413.9 MB, free: 8.406 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.49e-06/0.3941, allocations: 0 / 413.9 MB, free: 8.406 MB / 334.1 MB Notification: Performance of matching and sorting (n=124) (initialization): time 0.02179/0.4159, allocations: 5.348 MB / 419.2 MB, free: 3.035 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.932e-05/0.4161, allocations: 67.39 kB / 419.3 MB, free: 2.957 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.743e-05/0.4161, allocations: 11.94 kB / 419.3 MB, free: 2.945 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.03184/0.4479, allocations: 6.836 MB / 426.1 MB, free: 12.1 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007078/0.4487, allocations: 143.7 kB / 426.3 MB, free: 11.96 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006499/0.4552, allocations: 3.153 MB / 429.4 MB, free: 8.754 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001692/0.4569, allocations: 183.8 kB / 429.6 MB, free: 8.574 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001213/0.4571, allocations: 50.28 kB / 429.7 MB, free: 8.527 MB / 350.1 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 (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 (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.0004644/0.4575, allocations: 225.5 kB / 429.9 MB, free: 8.297 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001561/0.4577, allocations: 79.06 kB / 430 MB, free: 8.219 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02094/0.4786, allocations: 5.095 MB / 435.1 MB, free: 3.113 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.078e-05/0.4787, allocations: 8 kB / 435.1 MB, free: 3.105 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.057e-05/0.4787, allocations: 4 kB / 435.1 MB, free: 3.102 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.613e-05/0.4788, allocations: 12.62 kB / 435.1 MB, free: 3.09 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001591/0.4804, allocations: 1.091 MB / 436.2 MB, free: 1.965 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.453e-06/0.4804, allocations: 3.938 kB / 436.2 MB, free: 1.961 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005456/0.4809, allocations: 95.81 kB / 436.3 MB, free: 1.867 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.03123/0.5122, allocations: 6.797 MB / 443.1 MB, free: 11.06 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002461/0.5125, allocations: 27.91 kB / 443.1 MB, free: 11.04 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005479/0.518, allocations: 3.041 MB / 446.1 MB, free: 7.945 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.228e-06/0.518, allocations: 4 kB / 446.1 MB, free: 7.941 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02283/0.5408, allocations: 5.991 MB / 452.1 MB, free: 1.926 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002595/0.5411, allocations: 141.3 kB / 452.3 MB, free: 1.77 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001782/0.5413, allocations: 23.98 kB / 452.3 MB, free: 1.746 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001323/0.5426, allocations: 163.8 kB / 452.5 MB, free: 1.586 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002431/0.5429, allocations: 108.8 kB / 452.6 MB, free: 1.48 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.891e-05/0.543, allocations: 23.98 kB / 452.6 MB, free: 1.457 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0003706/0.5434, allocations: 338.9 kB / 452.9 MB, free: 1.129 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.5434, allocations: 0 / 452.9 MB, free: 1.129 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0007293/0.5441, allocations: 252 kB / 453.2 MB, free: 0.8828 MB / 366.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.0002639/0.5444, allocations: 135.3 kB / 453.3 MB, free: 0.7422 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.006482/0.5509, allocations: 2.169 MB / 455.5 MB, free: 14.55 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 5.12e-06/0.5509, allocations: 0 / 455.5 MB, free: 14.55 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003378/0.5543, allocations: 1.099 MB / 456.6 MB, free: 13.45 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008378/0.5551, allocations: 125.6 kB / 456.7 MB, free: 13.33 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003579/0.5587, allocations: 1.755 MB / 458.4 MB, free: 11.55 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004218/0.5592, allocations: 0.9427 MB / 459.4 MB, free: 10.58 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001736/0.5594, allocations: 35.44 kB / 459.4 MB, free: 10.54 MB / 382.1 MB Notification: Performance of SimCode: time 6.01e-07/0.5594, allocations: 0 / 459.4 MB, free: 10.54 MB / 382.1 MB Notification: Performance of Templates: time 0.01869/0.5781, allocations: 16.89 MB / 476.3 MB, free: 9.633 MB / 398.1 MB make -j1 -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate.makefile (rm -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate.sim & ./Modelica_3.2.3_Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Analog/Examples/HeatingNPN_OrGate/HeatingNPN_OrGate.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches