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.0009965/0.0009967, allocations: 93.25 kB / 17.3 MB, free: 6.395 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.001136/0.001137, allocations: 172.9 kB / 18.2 MB, free: 5.551 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.449/1.449, allocations: 205.4 MB / 224.4 MB, free: 13.07 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.000544/0.000544, allocations: 12.22 kB / 281.4 MB, free: 3.438 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1079/0.1085, allocations: 47.57 MB / 328.9 MB, free: 3.789 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate): time 0.00471/0.1133, allocations: 4.317 MB / 333.3 MB, free: 15.44 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.002933/0.1162, allocations: 1.265 MB / 334.5 MB, free: 14.17 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004101/0.1167, allocations: 11.94 kB / 334.5 MB, free: 14.16 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002693/0.117, allocations: 79.36 kB / 334.6 MB, free: 14.08 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005282/0.1175, allocations: 218.2 kB / 334.8 MB, free: 13.86 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007166/0.1182, allocations: 259.7 kB / 335.1 MB, free: 13.61 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.000936/0.1192, allocations: 0.9898 MB / 336.1 MB, free: 12.62 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003829/0.1196, allocations: 219.3 kB / 336.3 MB, free: 12.39 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004116/0.12, allocations: 354.5 kB / 336.6 MB, free: 12.04 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000451/0.1205, allocations: 414 kB / 337 MB, free: 11.63 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 8.684e-05/0.1206, allocations: 44 kB / 337.1 MB, free: 11.59 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001722/0.1207, allocations: 59.98 kB / 337.1 MB, free: 11.53 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001317/0.1209, allocations: 147.3 kB / 337.3 MB, free: 11.39 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003469/0.1212, allocations: 411.5 kB / 337.7 MB, free: 10.98 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007804/0.122, allocations: 0.8992 MB / 338.6 MB, free: 10.07 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.538e-06/0.122, allocations: 0 / 338.6 MB, free: 10.07 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.452e-06/0.122, allocations: 0 / 338.6 MB, free: 10.07 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.01e-05/0.1221, allocations: 4 kB / 338.6 MB, free: 10.07 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.002347/0.1244, allocations: 1.122 MB / 339.7 MB, free: 8.883 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.948e-05/0.1245, allocations: 12.03 kB / 339.7 MB, free: 8.871 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001569/0.1246, allocations: 88 kB / 339.8 MB, free: 8.785 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005281/0.1252, allocations: 457.4 kB / 340.3 MB, free: 8.297 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.045e-05/0.1252, allocations: 49.69 kB / 340.3 MB, free: 8.25 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001076/0.1253, allocations: 56.38 kB / 340.4 MB, free: 8.195 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001358/0.1267, allocations: 0.6665 MB / 341 MB, free: 7.52 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.598e-05/0.1267, allocations: 7.906 kB / 341 MB, free: 7.512 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.413e-05/0.1268, allocations: 28 kB / 341.1 MB, free: 7.484 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.257e-05/0.1268, allocations: 12 kB / 341.1 MB, free: 7.473 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001675/0.1285, allocations: 0.7351 MB / 341.8 MB, free: 6.738 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.003658/0.1322, allocations: 2.367 MB / 344.2 MB, free: 4.219 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001488/0.1337, allocations: 0.6491 MB / 344.8 MB, free: 3.559 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007725/0.1345, allocations: 361.9 kB / 345.2 MB, free: 3.203 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.159e-05/0.1345, allocations: 16.42 kB / 345.2 MB, free: 3.188 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001014/0.1355, allocations: 457.4 kB / 345.6 MB, free: 2.715 MB / 286.1 MB Notification: Performance of pre-optimization done (n=54): time 2.254e-06/0.1356, allocations: 0 / 345.6 MB, free: 2.715 MB / 286.1 MB Notification: Performance of matching and sorting (n=94): time 0.07181/0.2074, allocations: 16.73 MB / 362.4 MB, free: 1.891 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000104/0.2075, allocations: 153.5 kB / 362.5 MB, free: 1.707 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000689/0.2082, allocations: 0.491 MB / 363 MB, free: 1.211 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001626/0.2084, allocations: 41.7 kB / 363.1 MB, free: 1.164 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002822/0.2087, allocations: 367.9 kB / 363.4 MB, free: 0.7969 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003091/0.209, allocations: 311.5 kB / 363.7 MB, free: 500 kB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001393/0.2092, allocations: 81.67 kB / 363.8 MB, free: 412 kB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001939/0.2094, allocations: 382.8 kB / 364.2 MB, free: 20 kB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002127/0.2115, allocations: 0.7905 MB / 365 MB, free: 15.23 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002339/0.2138, allocations: 1.012 MB / 366 MB, free: 14.14 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004229/0.2181, allocations: 1.814 MB / 367.8 MB, free: 12.24 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.47e-06/0.2181, allocations: 0 / 367.8 MB, free: 12.24 MB / 318.1 MB Notification: Performance of matching and sorting (n=124) (initialization): time 0.02371/0.2418, allocations: 5.714 MB / 373.5 MB, free: 6.5 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.345e-05/0.242, allocations: 71.39 kB / 373.6 MB, free: 6.418 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.012e-05/0.242, allocations: 8 kB / 373.6 MB, free: 6.41 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.2201/0.4621, allocations: 7.315 MB / 380.9 MB, free: 52.02 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007856/0.4629, allocations: 175.2 kB / 381.1 MB, free: 52.02 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007316/0.4703, allocations: 3.227 MB / 384.3 MB, free: 50.98 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001877/0.4722, allocations: 224.2 kB / 384.5 MB, free: 50.98 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001262/0.4723, allocations: 46.08 kB / 384.6 MB, free: 50.98 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.000451/0.4728, allocations: 221 kB / 384.8 MB, free: 50.86 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001767/0.473, allocations: 79.72 kB / 384.8 MB, free: 50.86 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02456/0.4975, allocations: 5.463 MB / 390.3 MB, free: 50.19 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.608e-05/0.4976, allocations: 19.81 kB / 390.3 MB, free: 50.19 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.803e-05/0.4976, allocations: 0 / 390.3 MB, free: 50.19 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.813e-05/0.4977, allocations: 3.891 kB / 390.3 MB, free: 50.19 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001456/0.4991, allocations: 1.081 MB / 391.4 MB, free: 49.63 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.04e-06/0.4991, allocations: 0 / 391.4 MB, free: 49.63 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005396/0.4997, allocations: 124.7 kB / 391.5 MB, free: 49.62 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.03256/0.5323, allocations: 7.285 MB / 398.8 MB, free: 47.43 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002011/0.5325, allocations: 23.97 kB / 398.8 MB, free: 47.41 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0049/0.5374, allocations: 3.111 MB / 402 MB, free: 44.27 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.204e-06/0.5374, allocations: 0 / 402 MB, free: 44.27 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02292/0.5604, allocations: 6.431 MB / 408.4 MB, free: 37.84 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002094/0.5606, allocations: 140.2 kB / 408.5 MB, free: 37.68 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001452/0.5608, allocations: 23.83 kB / 408.5 MB, free: 37.66 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001303/0.5621, allocations: 208.4 kB / 408.7 MB, free: 37.46 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000236/0.5623, allocations: 96.86 kB / 408.8 MB, free: 37.37 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.444e-05/0.5624, allocations: 35.97 kB / 408.9 MB, free: 37.33 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0003185/0.5627, allocations: 338.9 kB / 409.2 MB, free: 37 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.5627, allocations: 0.875 kB / 409.2 MB, free: 37 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0007075/0.5635, allocations: 255.9 kB / 409.5 MB, free: 36.75 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.0002472/0.5637, allocations: 127.4 kB / 409.6 MB, free: 36.62 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.006157/0.5699, allocations: 2.334 MB / 411.9 MB, free: 34.27 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 6.051e-06/0.5699, allocations: 5.125 kB / 411.9 MB, free: 34.26 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003083/0.573, allocations: 1.164 MB / 413.1 MB, free: 33.11 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007954/0.5738, allocations: 110.3 kB / 413.2 MB, free: 33 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003244/0.5771, allocations: 2.135 MB / 415.3 MB, free: 30.86 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000257/0.5773, allocations: 0.9434 MB / 416.3 MB, free: 29.88 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0002354/0.5776, allocations: 54.06 kB / 416.3 MB, free: 29.83 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.87e-05/0.5777, allocations: 31.44 kB / 416.4 MB, free: 29.8 MB / 318.1 MB Notification: Performance of SimCode: time 9.32e-07/0.5777, allocations: 4 kB / 416.4 MB, free: 29.79 MB / 318.1 MB Notification: Performance of Templates: time 0.02408/0.6018, allocations: 20.41 MB / 436.8 MB, free: 9.383 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