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.001505/0.001505, allocations: 111.7 kB / 17.28 MB, free: 6.199 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.001642/0.001642, allocations: 185.3 kB / 18.2 MB, free: 5.281 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.76/1.76, allocations: 205.1 MB / 224 MB, free: 12.43 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.002047/0.002047, allocations: 44.14 kB / 280.1 MB, free: 3.492 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09584/0.09791, allocations: 46.63 MB / 326.8 MB, free: 4.793 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate): time 0.005413/0.1034, allocations: 4.729 MB / 331.5 MB, free: 32 kB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.002445/0.1059, allocations: 1.264 MB / 332.8 MB, free: 14.76 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004124/0.1063, allocations: 11.94 kB / 332.8 MB, free: 14.75 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002955/0.1066, allocations: 83.3 kB / 332.9 MB, free: 14.66 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004389/0.1071, allocations: 210.2 kB / 333.1 MB, free: 14.46 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006055/0.1077, allocations: 263.7 kB / 333.3 MB, free: 14.2 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008933/0.1086, allocations: 1.048 MB / 334.4 MB, free: 13.15 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003332/0.109, allocations: 262.4 kB / 334.6 MB, free: 12.88 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004572/0.1094, allocations: 402.5 kB / 335 MB, free: 12.48 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004354/0.1099, allocations: 450.1 kB / 335.5 MB, free: 12.04 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001012/0.11, allocations: 84 kB / 335.5 MB, free: 11.96 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001872/0.1102, allocations: 116 kB / 335.7 MB, free: 11.85 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002018/0.1104, allocations: 187.3 kB / 335.8 MB, free: 11.66 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003467/0.1107, allocations: 433.8 kB / 336.3 MB, free: 11.24 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008042/0.1115, allocations: 0.9619 MB / 337.2 MB, free: 10.27 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.491e-06/0.1116, allocations: 3.938 kB / 337.2 MB, free: 10.27 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.272e-06/0.1116, allocations: 0 / 337.2 MB, free: 10.27 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.252e-05/0.1116, allocations: 4 kB / 337.2 MB, free: 10.27 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.002255/0.1138, allocations: 1.204 MB / 338.4 MB, free: 8.992 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.348e-05/0.1139, allocations: 12.03 kB / 338.4 MB, free: 8.98 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001579/0.1141, allocations: 87.91 kB / 338.5 MB, free: 8.895 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005689/0.1146, allocations: 457.4 kB / 339 MB, free: 8.406 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.635e-05/0.1147, allocations: 49.69 kB / 339 MB, free: 8.359 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001024/0.1148, allocations: 64.38 kB / 339.1 MB, free: 8.297 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001324/0.1161, allocations: 0.6353 MB / 339.7 MB, free: 7.652 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.902e-05/0.1162, allocations: 0 / 339.7 MB, free: 7.652 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.114e-05/0.1162, allocations: 28 kB / 339.8 MB, free: 7.625 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.169e-05/0.1162, allocations: 12 kB / 339.8 MB, free: 7.613 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001489/0.1177, allocations: 0.6882 MB / 340.5 MB, free: 6.926 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.003501/0.1212, allocations: 2.335 MB / 342.8 MB, free: 4.441 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001307/0.1226, allocations: 0.5827 MB / 343.4 MB, free: 3.848 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006664/0.1232, allocations: 334 kB / 343.7 MB, free: 3.52 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.068e-05/0.1233, allocations: 8.375 kB / 343.7 MB, free: 3.512 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009317/0.1242, allocations: 425.4 kB / 344.1 MB, free: 3.07 MB / 286.1 MB Notification: Performance of pre-optimization done (n=54): time 3.206e-06/0.1243, allocations: 0 / 344.1 MB, free: 3.07 MB / 286.1 MB Notification: Performance of matching and sorting (n=94): time 0.06715/0.1914, allocations: 15.41 MB / 359.5 MB, free: 3.562 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.604e-05/0.1916, allocations: 141.5 kB / 359.7 MB, free: 3.391 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005815/0.1921, allocations: 494.8 kB / 360.2 MB, free: 2.898 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001848/0.1923, allocations: 45.7 kB / 360.2 MB, free: 2.848 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002665/0.1926, allocations: 367.8 kB / 360.6 MB, free: 2.48 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002837/0.1929, allocations: 315.5 kB / 360.9 MB, free: 2.168 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003601/0.1933, allocations: 178.5 kB / 361 MB, free: 1.988 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001713/0.1935, allocations: 386.8 kB / 361.4 MB, free: 1.602 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001943/0.1954, allocations: 0.7124 MB / 362.1 MB, free: 0.8906 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002018/0.1974, allocations: 0.9343 MB / 363.1 MB, free: 15.88 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003809/0.2013, allocations: 1.654 MB / 364.7 MB, free: 14.14 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.691e-06/0.2013, allocations: 0 / 364.7 MB, free: 14.14 MB / 318.1 MB Notification: Performance of matching and sorting (n=124) (initialization): time 0.02297/0.2243, allocations: 5.354 MB / 370.1 MB, free: 8.75 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.633e-05/0.2244, allocations: 59.41 kB / 370.1 MB, free: 8.68 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.336e-05/0.2244, allocations: 8 kB / 370.1 MB, free: 8.672 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.03276/0.2572, allocations: 6.847 MB / 377 MB, free: 1.809 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006663/0.2579, allocations: 143.8 kB / 377.1 MB, free: 1.668 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1536/0.4116, allocations: 3.158 MB / 380.3 MB, free: 52.92 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001816/0.4134, allocations: 186.8 kB / 380.5 MB, free: 52.92 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002396/0.4137, allocations: 44.94 kB / 380.5 MB, free: 52.92 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.0005707/0.4143, allocations: 218.2 kB / 380.7 MB, free: 52.8 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002281/0.4145, allocations: 74.97 kB / 380.8 MB, free: 52.8 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02216/0.4367, allocations: 5.101 MB / 385.9 MB, free: 52.26 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.035e-05/0.4368, allocations: 9.438 kB / 385.9 MB, free: 52.26 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.223e-05/0.4368, allocations: 0 / 385.9 MB, free: 52.26 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.68e-05/0.4368, allocations: 3.609 kB / 385.9 MB, free: 52.26 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001543/0.4384, allocations: 1.089 MB / 387 MB, free: 51.7 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.985e-06/0.4384, allocations: 0 / 387 MB, free: 51.7 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005275/0.4389, allocations: 104.9 kB / 387.1 MB, free: 51.69 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.03167/0.4706, allocations: 6.796 MB / 393.9 MB, free: 50.23 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002326/0.4709, allocations: 23.86 kB / 393.9 MB, free: 50.21 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004763/0.4757, allocations: 3.055 MB / 397 MB, free: 48.17 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.489e-06/0.4757, allocations: 0 / 397 MB, free: 48.17 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02109/0.4968, allocations: 5.976 MB / 403 MB, free: 42.72 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001679/0.497, allocations: 151.4 kB / 403.1 MB, free: 42.56 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001632/0.4972, allocations: 16.88 kB / 403.1 MB, free: 42.55 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001254/0.4985, allocations: 175.7 kB / 403.3 MB, free: 42.38 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002407/0.4987, allocations: 92.88 kB / 403.4 MB, free: 42.29 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.172e-05/0.4988, allocations: 35.97 kB / 403.4 MB, free: 42.25 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0002958/0.4991, allocations: 334.8 kB / 403.7 MB, free: 41.93 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.4991, allocations: 0 / 403.7 MB, free: 41.93 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0006541/0.4998, allocations: 258.1 kB / 404 MB, free: 41.68 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.00024/0.5, allocations: 134.8 kB / 404.1 MB, free: 41.54 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.005833/0.5059, allocations: 2.182 MB / 406.3 MB, free: 39.34 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 6.983e-06/0.5059, allocations: 0 / 406.3 MB, free: 39.34 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002981/0.5089, allocations: 1.093 MB / 407.4 MB, free: 38.25 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007338/0.5096, allocations: 132 kB / 407.5 MB, free: 38.14 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003488/0.5131, allocations: 2.063 MB / 409.6 MB, free: 36.08 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002878/0.5135, allocations: 0.9375 MB / 410.5 MB, free: 35.12 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0002892/0.5138, allocations: 56.56 kB / 410.6 MB, free: 35.06 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001089/0.5139, allocations: 35.44 kB / 410.6 MB, free: 35.03 MB / 318.1 MB Notification: Performance of SimCode: time 9.32e-07/0.5139, allocations: 0 / 410.6 MB, free: 35.03 MB / 318.1 MB Notification: Performance of Templates: time 0.02469/0.5386, allocations: 21.94 MB / 432.6 MB, free: 13.08 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/jenkins/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