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.001176/0.001176, allocations: 108.4 kB / 18.34 MB, free: 4.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.001112/0.001112, allocations: 186.9 kB / 19.28 MB, free: 3.75 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.359/1.359, allocations: 205.1 MB / 225.2 MB, free: 12.24 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.001189/0.00119, allocations: 51.92 kB / 282.1 MB, free: 2.461 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08719/0.08839, allocations: 46.64 MB / 328.7 MB, free: 3.746 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate): time 0.005493/0.09393, allocations: 4.712 MB / 333.4 MB, free: 15 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.002222/0.09618, allocations: 1.257 MB / 334.7 MB, free: 13.73 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002762/0.09647, allocations: 15.94 kB / 334.7 MB, free: 13.72 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002791/0.09679, allocations: 110.8 kB / 334.8 MB, free: 13.61 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004179/0.09722, allocations: 245.7 kB / 335.1 MB, free: 13.37 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006135/0.09784, allocations: 303.5 kB / 335.4 MB, free: 13.07 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008903/0.09874, allocations: 1.06 MB / 336.4 MB, free: 12.01 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003368/0.09909, allocations: 258.4 kB / 336.7 MB, free: 11.74 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003671/0.09946, allocations: 402.6 kB / 337.1 MB, free: 11.35 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004482/0.09992, allocations: 458.1 kB / 337.5 MB, free: 10.9 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001046/0.1, allocations: 84 kB / 337.6 MB, free: 10.82 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001816/0.1002, allocations: 108 kB / 337.7 MB, free: 10.71 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001636/0.1004, allocations: 183.4 kB / 337.9 MB, free: 10.53 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000355/0.1008, allocations: 433.9 kB / 338.3 MB, free: 10.11 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007957/0.1016, allocations: 0.9693 MB / 339.3 MB, free: 9.133 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.168e-06/0.1016, allocations: 3.938 kB / 339.3 MB, free: 9.129 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.353e-06/0.1016, allocations: 0 / 339.3 MB, free: 9.129 MB / 286.1 MB Notification: Performance of Transformations before backend: time 9.658e-06/0.1016, allocations: 4 kB / 339.3 MB, free: 9.125 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.002157/0.1038, allocations: 1.211 MB / 340.5 MB, free: 7.844 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.318e-05/0.1038, allocations: 8.031 kB / 340.5 MB, free: 7.836 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001352/0.104, allocations: 87.91 kB / 340.6 MB, free: 7.75 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000645/0.1046, allocations: 469.4 kB / 341 MB, free: 7.25 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.493e-05/0.1047, allocations: 45.69 kB / 341.1 MB, free: 7.207 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.746e-05/0.1048, allocations: 56.38 kB / 341.1 MB, free: 7.152 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001246/0.106, allocations: 0.6431 MB / 341.8 MB, free: 6.504 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.673e-05/0.106, allocations: 0 / 341.8 MB, free: 6.504 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.832e-05/0.1061, allocations: 24 kB / 341.8 MB, free: 6.48 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.99e-05/0.1061, allocations: 16 kB / 341.8 MB, free: 6.465 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001531/0.1077, allocations: 0.6765 MB / 342.5 MB, free: 5.785 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.003513/0.1112, allocations: 2.323 MB / 344.8 MB, free: 3.312 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001308/0.1125, allocations: 0.5904 MB / 345.4 MB, free: 2.711 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006761/0.1132, allocations: 334 kB / 345.7 MB, free: 2.383 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.214e-05/0.1133, allocations: 8.438 kB / 345.7 MB, free: 2.375 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008399/0.1141, allocations: 425.4 kB / 346.2 MB, free: 1.934 MB / 286.1 MB Notification: Performance of pre-optimization done (n=54): time 4.759e-06/0.1141, allocations: 0 / 346.2 MB, free: 1.934 MB / 286.1 MB Notification: Performance of matching and sorting (n=94): time 0.0661/0.1802, allocations: 15.4 MB / 361.6 MB, free: 2.434 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000103/0.1804, allocations: 145.5 kB / 361.7 MB, free: 2.258 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006229/0.181, allocations: 0.491 MB / 362.2 MB, free: 1.758 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001814/0.1812, allocations: 41.7 kB / 362.2 MB, free: 1.711 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002575/0.1815, allocations: 367.9 kB / 362.6 MB, free: 1.344 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002497/0.1817, allocations: 311.5 kB / 362.9 MB, free: 1.035 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003538/0.1821, allocations: 178.5 kB / 363.1 MB, free: 0.8555 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001664/0.1823, allocations: 382.8 kB / 363.4 MB, free: 484 kB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001864/0.1841, allocations: 0.7242 MB / 364.2 MB, free: 15.75 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001985/0.1861, allocations: 0.9187 MB / 365.1 MB, free: 14.74 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003803/0.1899, allocations: 1.67 MB / 366.8 MB, free: 12.99 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.36e-06/0.19, allocations: 0 / 366.8 MB, free: 12.99 MB / 318.1 MB Notification: Performance of matching and sorting (n=124) (initialization): time 0.02206/0.212, allocations: 5.35 MB / 372.1 MB, free: 7.613 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.823e-05/0.2122, allocations: 63.41 kB / 372.2 MB, free: 7.539 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.763e-05/0.2122, allocations: 4 kB / 372.2 MB, free: 7.535 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.03286/0.245, allocations: 6.84 MB / 379 MB, free: 0.6797 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006566/0.2457, allocations: 143.7 kB / 379.2 MB, free: 0.5391 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1555/0.4012, allocations: 3.154 MB / 382.3 MB, free: 52.31 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001496/0.4028, allocations: 184.7 kB / 382.5 MB, free: 52.31 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001091/0.4029, allocations: 43.42 kB / 382.5 MB, free: 52.31 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.0003757/0.4033, allocations: 222.7 kB / 382.7 MB, free: 52.19 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001387/0.4034, allocations: 76.11 kB / 382.8 MB, free: 52.19 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02148/0.4249, allocations: 5.102 MB / 387.9 MB, free: 51.37 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.63e-05/0.425, allocations: 10 kB / 387.9 MB, free: 51.37 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.084e-05/0.425, allocations: 3.25 kB / 387.9 MB, free: 51.37 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.916e-05/0.425, allocations: 7.734 kB / 387.9 MB, free: 51.37 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001344/0.4264, allocations: 1.093 MB / 389 MB, free: 50.8 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.49e-06/0.4264, allocations: 0 / 389 MB, free: 50.8 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004799/0.4269, allocations: 94.67 kB / 389.1 MB, free: 50.8 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.03055/0.4574, allocations: 6.79 MB / 395.9 MB, free: 49.24 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002421/0.4577, allocations: 23.7 kB / 395.9 MB, free: 49.22 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004787/0.4625, allocations: 3.054 MB / 399 MB, free: 47.19 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.105e-06/0.4625, allocations: 2.625 kB / 399 MB, free: 47.19 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02048/0.483, allocations: 5.983 MB / 405 MB, free: 41.26 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002112/0.4833, allocations: 148 kB / 405.1 MB, free: 41.1 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001494/0.4835, allocations: 23.61 kB / 405.2 MB, free: 41.08 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001178/0.4846, allocations: 167.8 kB / 405.3 MB, free: 40.92 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002388/0.4849, allocations: 97.91 kB / 405.4 MB, free: 40.82 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.313e-05/0.485, allocations: 31.97 kB / 405.4 MB, free: 40.79 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0003188/0.4853, allocations: 334.9 kB / 405.8 MB, free: 40.47 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.4853, allocations: 4 kB / 405.8 MB, free: 40.46 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0006661/0.486, allocations: 257.1 kB / 406 MB, free: 40.21 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.0002453/0.4862, allocations: 128.3 kB / 406.2 MB, free: 40.08 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.005582/0.4918, allocations: 2.173 MB / 408.3 MB, free: 37.89 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 4.108e-06/0.4919, allocations: 0 / 408.3 MB, free: 37.89 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002909/0.4948, allocations: 1.089 MB / 409.4 MB, free: 36.8 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006882/0.4955, allocations: 135.5 kB / 409.5 MB, free: 36.68 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003033/0.4985, allocations: 1.715 MB / 411.3 MB, free: 34.96 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002214/0.4988, allocations: 0.9375 MB / 412.2 MB, free: 34 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0002107/0.499, allocations: 58.02 kB / 412.3 MB, free: 33.94 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001033/0.4991, allocations: 35.44 kB / 412.3 MB, free: 33.91 MB / 318.1 MB Notification: Performance of SimCode: time 6.31e-07/0.4991, allocations: 3.609 kB / 412.3 MB, free: 33.91 MB / 318.1 MB Notification: Performance of Templates: time 0.02378/0.5229, allocations: 22.31 MB / 434.6 MB, free: 11.6 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 -s cvode -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