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.001246/0.001246, allocations: 110.5 kB / 17.93 MB, free: 5.676 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.00123/0.00123, allocations: 193.8 kB / 18.86 MB, free: 4.754 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.555/1.555, allocations: 205.1 MB / 224.7 MB, free: 12.44 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.001372/0.001372, allocations: 52.2 kB / 280.8 MB, free: 3.504 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1003/0.1017, allocations: 46.63 MB / 327.4 MB, free: 4.801 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate): time 0.006187/0.1079, allocations: 4.723 MB / 332.2 MB, free: 44 kB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.002908/0.1109, allocations: 1.257 MB / 333.4 MB, free: 14.78 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008505/0.1118, allocations: 15.94 kB / 333.4 MB, free: 14.76 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005254/0.1124, allocations: 79.36 kB / 333.5 MB, free: 14.68 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009093/0.1133, allocations: 210.2 kB / 333.7 MB, free: 14.48 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008746/0.1142, allocations: 263.7 kB / 334 MB, free: 14.22 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.001204/0.1154, allocations: 1.048 MB / 335 MB, free: 13.17 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004038/0.1158, allocations: 254.4 kB / 335.3 MB, free: 12.91 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005136/0.1163, allocations: 410.5 kB / 335.7 MB, free: 12.5 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004913/0.1168, allocations: 454 kB / 336.1 MB, free: 12.06 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001107/0.1169, allocations: 88 kB / 336.2 MB, free: 11.97 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001931/0.1171, allocations: 108 kB / 336.3 MB, free: 11.87 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001405/0.1173, allocations: 187.3 kB / 336.5 MB, free: 11.68 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003581/0.1177, allocations: 433.8 kB / 336.9 MB, free: 11.26 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007171/0.1184, allocations: 0.7251 MB / 337.6 MB, free: 10.53 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.673e-06/0.1184, allocations: 4 kB / 337.6 MB, free: 10.53 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.984e-06/0.1184, allocations: 0 / 337.6 MB, free: 10.53 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.369e-05/0.1184, allocations: 4 kB / 337.6 MB, free: 10.52 MB / 286.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.002404/0.1208, allocations: 1.2 MB / 338.8 MB, free: 9.254 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.389e-05/0.1209, allocations: 12.03 kB / 338.9 MB, free: 9.242 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001667/0.1211, allocations: 91.89 kB / 338.9 MB, free: 9.152 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005797/0.1217, allocations: 461.3 kB / 339.4 MB, free: 8.66 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.713e-05/0.1217, allocations: 53.67 kB / 339.4 MB, free: 8.609 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001028/0.1218, allocations: 64.38 kB / 339.5 MB, free: 8.547 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001335/0.1232, allocations: 0.6353 MB / 340.1 MB, free: 7.902 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.637e-05/0.1232, allocations: 3.984 kB / 340.2 MB, free: 7.898 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.604e-05/0.1233, allocations: 28 kB / 340.2 MB, free: 7.871 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.544e-05/0.1233, allocations: 16 kB / 340.2 MB, free: 7.855 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001563/0.1249, allocations: 0.6726 MB / 340.9 MB, free: 7.184 MB / 286.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.003641/0.1285, allocations: 2.335 MB / 343.2 MB, free: 4.699 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001401/0.1299, allocations: 0.5866 MB / 343.8 MB, free: 4.102 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006941/0.1307, allocations: 334 kB / 344.1 MB, free: 3.773 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.707e-05/0.1307, allocations: 12.41 kB / 344.1 MB, free: 3.762 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009958/0.1317, allocations: 429.4 kB / 344.5 MB, free: 3.316 MB / 286.1 MB Notification: Performance of pre-optimization done (n=54): time 2.615e-06/0.1317, allocations: 4 kB / 344.5 MB, free: 3.312 MB / 286.1 MB Notification: Performance of matching and sorting (n=94): time 0.06932/0.2011, allocations: 15.39 MB / 359.9 MB, free: 3.824 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000115/0.2012, allocations: 141.5 kB / 360.1 MB, free: 3.652 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00067/0.2019, allocations: 0.491 MB / 360.6 MB, free: 3.152 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002122/0.2021, allocations: 41.7 kB / 360.6 MB, free: 3.105 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002874/0.2024, allocations: 367.9 kB / 361 MB, free: 2.738 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000326/0.2028, allocations: 315.5 kB / 361.3 MB, free: 2.426 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003652/0.2031, allocations: 178.5 kB / 361.5 MB, free: 2.246 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001673/0.2033, allocations: 382.8 kB / 361.8 MB, free: 1.863 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001973/0.2053, allocations: 0.7163 MB / 362.5 MB, free: 1.148 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002047/0.2074, allocations: 0.9303 MB / 363.5 MB, free: 140 kB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003918/0.2113, allocations: 1.658 MB / 365.1 MB, free: 14.39 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.863e-06/0.2113, allocations: 0 / 365.1 MB, free: 14.39 MB / 318.1 MB Notification: Performance of matching and sorting (n=124) (initialization): time 0.02472/0.236, allocations: 5.347 MB / 370.5 MB, free: 9.012 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001273/0.2363, allocations: 63.39 kB / 370.5 MB, free: 8.938 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.288e-05/0.2363, allocations: 8 kB / 370.6 MB, free: 8.93 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.03631/0.2726, allocations: 6.851 MB / 377.4 MB, free: 2.062 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007013/0.2734, allocations: 143.7 kB / 377.5 MB, free: 1.922 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1994/0.4728, allocations: 3.159 MB / 380.7 MB, free: 53.52 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001762/0.4746, allocations: 180.6 kB / 380.9 MB, free: 53.52 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001657/0.4748, allocations: 49.41 kB / 380.9 MB, free: 53.52 MB / 318.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.0004504/0.4752, allocations: 222 kB / 381.1 MB, free: 53.38 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001965/0.4754, allocations: 75.78 kB / 381.2 MB, free: 53.38 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02353/0.499, allocations: 5.106 MB / 386.3 MB, free: 52.57 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.751e-05/0.499, allocations: 9.406 kB / 386.3 MB, free: 52.57 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.568e-06/0.4991, allocations: 0 / 386.3 MB, free: 52.57 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.547e-05/0.4991, allocations: 3.609 kB / 386.3 MB, free: 52.57 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001442/0.5005, allocations: 1.088 MB / 387.4 MB, free: 52 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.031e-06/0.5006, allocations: 3.719 kB / 387.4 MB, free: 52 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005415/0.5011, allocations: 94.48 kB / 387.5 MB, free: 52 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.03328/0.5344, allocations: 6.794 MB / 394.3 MB, free: 50.55 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002246/0.5347, allocations: 26.73 kB / 394.3 MB, free: 50.53 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004862/0.5395, allocations: 3.055 MB / 397.4 MB, free: 48.49 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.247e-06/0.5396, allocations: 4 kB / 397.4 MB, free: 48.48 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02256/0.5621, allocations: 5.98 MB / 403.4 MB, free: 42.99 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002069/0.5624, allocations: 143.4 kB / 403.5 MB, free: 42.84 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001708/0.5626, allocations: 28 kB / 403.5 MB, free: 42.81 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001338/0.5639, allocations: 171.7 kB / 403.7 MB, free: 42.64 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002343/0.5641, allocations: 96.88 kB / 403.8 MB, free: 42.55 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.503e-05/0.5642, allocations: 31.97 kB / 403.8 MB, free: 42.52 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0003058/0.5646, allocations: 334.9 kB / 404.2 MB, free: 42.19 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.5646, allocations: 0 / 404.2 MB, free: 42.19 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0007084/0.5653, allocations: 259.1 kB / 404.4 MB, free: 41.94 MB / 318.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.0002355/0.5655, allocations: 131.2 kB / 404.5 MB, free: 41.8 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.006111/0.5716, allocations: 2.181 MB / 406.7 MB, free: 39.6 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 4.809e-06/0.5717, allocations: 1.125 kB / 406.7 MB, free: 39.6 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003094/0.5748, allocations: 1.092 MB / 407.8 MB, free: 38.51 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007746/0.5756, allocations: 126 kB / 407.9 MB, free: 38.41 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003395/0.579, allocations: 2.11 MB / 410.1 MB, free: 36.3 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002596/0.5793, allocations: 0.9375 MB / 411 MB, free: 35.34 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001666/0.5794, allocations: 39.44 kB / 411 MB, free: 35.3 MB / 318.1 MB Notification: Performance of SimCode: time 9.81e-07/0.5794, allocations: 0 / 411 MB, free: 35.3 MB / 318.1 MB Notification: Performance of Templates: time 0.01633/0.5958, allocations: 16.85 MB / 427.9 MB, free: 18.43 MB / 318.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","../files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches