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.001325/0.001325, allocations: 105.5 kB / 17.73 MB, free: 5.238 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.001445/0.001445, allocations: 187.1 kB / 18.66 MB, free: 4.312 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.556/1.556, allocations: 205.1 MB / 224.5 MB, free: 12.25 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.001166/0.001166, allocations: 52.31 kB / 328.5 MB, free: 3.297 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1001/0.1012, allocations: 46.61 MB / 375.2 MB, free: 4.582 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate): time 0.2289/0.3302, allocations: 4.705 MB / 379.9 MB, free: 9.746 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.003047/0.3333, allocations: 1.275 MB / 381.1 MB, free: 9.719 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004101/0.3338, allocations: 12.16 kB / 381.1 MB, free: 9.719 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003153/0.3342, allocations: 114.7 kB / 381.3 MB, free: 9.664 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005361/0.3347, allocations: 254.5 kB / 381.5 MB, free: 9.543 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001004/0.3357, allocations: 303 kB / 381.8 MB, free: 9.527 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.001329/0.3371, allocations: 1.059 MB / 382.9 MB, free: 9.309 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005339/0.3376, allocations: 261.6 kB / 383.1 MB, free: 9.254 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006713/0.3383, allocations: 409.5 kB / 383.5 MB, free: 9.105 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005962/0.3389, allocations: 453.8 kB / 384 MB, free: 8.895 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001473/0.3391, allocations: 84.84 kB / 384 MB, free: 8.895 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002545/0.3393, allocations: 109.3 kB / 384.1 MB, free: 8.887 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001652/0.3395, allocations: 192.3 kB / 384.3 MB, free: 8.762 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004061/0.3399, allocations: 425.4 kB / 384.8 MB, free: 8.512 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001255/0.3412, allocations: 0.9781 MB / 385.7 MB, free: 8.145 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.693e-06/0.3412, allocations: 4.969 kB / 385.7 MB, free: 8.141 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.104e-06/0.3412, allocations: 1.375 kB / 385.7 MB, free: 8.141 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.33e-05/0.3412, allocations: 0.6562 kB / 385.7 MB, free: 8.141 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.002535/0.3438, allocations: 1.205 MB / 386.9 MB, free: 7.32 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.853e-05/0.3438, allocations: 9.906 kB / 387 MB, free: 7.32 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001928/0.344, allocations: 88.67 kB / 387 MB, free: 7.277 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006816/0.3447, allocations: 471 kB / 387.5 MB, free: 6.918 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.219e-05/0.3448, allocations: 47.73 kB / 387.5 MB, free: 6.895 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001461/0.3449, allocations: 61.56 kB / 387.6 MB, free: 6.875 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001583/0.3465, allocations: 0.6454 MB / 388.2 MB, free: 6.629 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.136e-05/0.3465, allocations: 1.594 kB / 388.3 MB, free: 6.629 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.407e-05/0.3466, allocations: 27.42 kB / 388.3 MB, free: 6.609 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.912e-05/0.3466, allocations: 14.12 kB / 388.3 MB, free: 6.609 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001758/0.3484, allocations: 0.6748 MB / 389 MB, free: 6.406 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.004091/0.3525, allocations: 2.305 MB / 391.3 MB, free: 4.98 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001673/0.3542, allocations: 0.5852 MB / 391.9 MB, free: 4.754 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007936/0.355, allocations: 332.7 kB / 392.2 MB, free: 4.637 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.952e-05/0.3551, allocations: 5.891 kB / 392.2 MB, free: 4.633 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009917/0.3561, allocations: 439 kB / 392.6 MB, free: 4.438 MB / 318.1 MB Notification: Performance of pre-optimization done (n=54): time 2.495e-06/0.3561, allocations: 0 / 392.6 MB, free: 4.438 MB / 318.1 MB Notification: Performance of matching and sorting (n=94): time 0.06584/0.4219, allocations: 15.42 MB / 408 MB, free: 13.68 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001004/0.4221, allocations: 141.5 kB / 408.2 MB, free: 13.52 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007184/0.4228, allocations: 498.8 kB / 408.7 MB, free: 13.02 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002799/0.4231, allocations: 49.64 kB / 408.7 MB, free: 12.96 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003021/0.4234, allocations: 366.7 kB / 409.1 MB, free: 12.6 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004245/0.4238, allocations: 311.6 kB / 409.4 MB, free: 12.3 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004561/0.4243, allocations: 174.5 kB / 409.5 MB, free: 12.12 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0002384/0.4245, allocations: 382.8 kB / 409.9 MB, free: 11.73 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002241/0.4268, allocations: 0.7202 MB / 410.6 MB, free: 11.02 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00215/0.429, allocations: 0.9304 MB / 411.6 MB, free: 10 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004109/0.4331, allocations: 1.662 MB / 413.2 MB, free: 8.258 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.723e-06/0.4331, allocations: 0 / 413.2 MB, free: 8.258 MB / 334.1 MB Notification: Performance of matching and sorting (n=124) (initialization): time 0.02212/0.4552, allocations: 5.351 MB / 418.6 MB, free: 2.883 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.25e-05/0.4554, allocations: 59.41 kB / 418.6 MB, free: 2.812 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.991e-05/0.4554, allocations: 7.984 kB / 418.6 MB, free: 2.805 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.03181/0.4872, allocations: 6.84 MB / 425.5 MB, free: 11.96 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007532/0.488, allocations: 139.8 kB / 425.6 MB, free: 11.82 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007083/0.4951, allocations: 3.164 MB / 428.8 MB, free: 8.605 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001821/0.497, allocations: 179.8 kB / 429 MB, free: 8.43 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001912/0.4972, allocations: 46.7 kB / 429 MB, free: 8.387 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.000599/0.4978, allocations: 233.5 kB / 429.2 MB, free: 8.148 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000227/0.498, allocations: 75.06 kB / 429.3 MB, free: 8.074 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02087/0.5189, allocations: 5.1 MB / 434.4 MB, free: 2.965 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.697e-05/0.519, allocations: 8 kB / 434.4 MB, free: 2.957 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.546e-06/0.519, allocations: 0 / 434.4 MB, free: 2.957 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.949e-05/0.519, allocations: 3.984 kB / 434.4 MB, free: 2.953 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001714/0.5207, allocations: 1.1 MB / 435.5 MB, free: 1.82 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.658e-06/0.5208, allocations: 7.875 kB / 435.5 MB, free: 1.812 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005456/0.5213, allocations: 95.88 kB / 435.6 MB, free: 1.719 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.03167/0.553, allocations: 6.787 MB / 442.4 MB, free: 10.92 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002654/0.5533, allocations: 35.91 kB / 442.4 MB, free: 10.89 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005862/0.5592, allocations: 3.044 MB / 445.5 MB, free: 7.793 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.996e-06/0.5592, allocations: 0 / 445.5 MB, free: 7.793 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02336/0.5826, allocations: 5.987 MB / 451.5 MB, free: 1.781 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003644/0.583, allocations: 140.2 kB / 451.6 MB, free: 1.625 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003836/0.5834, allocations: 20.06 kB / 451.6 MB, free: 1.605 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00146/0.5849, allocations: 175.7 kB / 451.8 MB, free: 1.434 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003137/0.5852, allocations: 92.88 kB / 451.9 MB, free: 1.344 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001169/0.5853, allocations: 35.97 kB / 451.9 MB, free: 1.309 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0004485/0.5858, allocations: 334.9 kB / 452.3 MB, free: 0.9844 MB / 366.1 MB Notification: Performance of sort global known variables: time 2.1e-07/0.5858, allocations: 0 / 452.3 MB, free: 0.9844 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0009751/0.5868, allocations: 252 kB / 452.5 MB, free: 0.7383 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.0004131/0.5872, allocations: 129.9 kB / 452.6 MB, free: 0.6055 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.006985/0.5942, allocations: 2.182 MB / 454.8 MB, free: 14.4 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.208e-06/0.5942, allocations: 1.125 kB / 454.8 MB, free: 14.4 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003479/0.5977, allocations: 1.1 MB / 455.9 MB, free: 13.31 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009677/0.5987, allocations: 124 kB / 456 MB, free: 13.19 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004044/0.6027, allocations: 1.725 MB / 457.8 MB, free: 11.44 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004825/0.6032, allocations: 0.9389 MB / 458.7 MB, free: 10.47 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0002797/0.6035, allocations: 54.08 kB / 458.7 MB, free: 10.42 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001235/0.6037, allocations: 35.44 kB / 458.8 MB, free: 10.38 MB / 382.1 MB Notification: Performance of SimCode: time 6.11e-07/0.6037, allocations: 0 / 458.8 MB, free: 10.38 MB / 382.1 MB Notification: Performance of Templates: time 0.03632/0.64, allocations: 22.5 MB / 481.3 MB, free: 3.867 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/jenkins/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/jenkins/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