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.001172/0.001172, allocations: 104.4 kB / 18.35 MB, free: 4.645 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.001061/0.001061, allocations: 191 kB / 19.29 MB, free: 3.715 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.355/1.355, allocations: 205.1 MB / 225.2 MB, free: 12.29 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.001211/0.001211, allocations: 51.92 kB / 282.1 MB, free: 2.484 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09021/0.09143, allocations: 46.63 MB / 328.7 MB, free: 3.785 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate): time 0.005336/0.09682, allocations: 4.719 MB / 333.4 MB, free: 15.03 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.002283/0.09914, allocations: 1.257 MB / 334.7 MB, free: 13.77 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000244/0.0994, allocations: 15.94 kB / 334.7 MB, free: 13.75 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002571/0.0997, allocations: 114.8 kB / 334.8 MB, free: 13.64 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003889/0.1001, allocations: 249.7 kB / 335.1 MB, free: 13.39 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006052/0.1007, allocations: 299.5 kB / 335.4 MB, free: 13.1 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008369/0.1016, allocations: 1.056 MB / 336.4 MB, free: 12.04 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003338/0.1019, allocations: 258.4 kB / 336.7 MB, free: 11.77 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003699/0.1023, allocations: 406.6 kB / 337.1 MB, free: 11.38 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004418/0.1027, allocations: 454.1 kB / 337.5 MB, free: 10.93 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001078/0.1028, allocations: 87.94 kB / 337.6 MB, free: 10.84 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001745/0.103, allocations: 108 kB / 337.7 MB, free: 10.74 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000141/0.1032, allocations: 187.3 kB / 337.9 MB, free: 10.55 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003376/0.1035, allocations: 433.9 kB / 338.3 MB, free: 10.13 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007504/0.1043, allocations: 0.9654 MB / 339.3 MB, free: 9.16 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.34e-06/0.1043, allocations: 0 / 339.3 MB, free: 9.16 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.472e-06/0.1043, allocations: 4 kB / 339.3 MB, free: 9.156 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.343e-05/0.1043, allocations: 0 / 339.3 MB, free: 9.156 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.002185/0.1065, allocations: 1.207 MB / 340.5 MB, free: 7.879 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.486e-05/0.1066, allocations: 12.03 kB / 340.5 MB, free: 7.867 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001375/0.1067, allocations: 91.91 kB / 340.6 MB, free: 7.777 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006121/0.1073, allocations: 469.3 kB / 341.1 MB, free: 7.277 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.584e-05/0.1074, allocations: 45.67 kB / 341.1 MB, free: 7.234 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001013/0.1075, allocations: 64.38 kB / 341.2 MB, free: 7.172 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001206/0.1087, allocations: 0.6353 MB / 341.8 MB, free: 6.531 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.894e-05/0.1087, allocations: 3.938 kB / 341.8 MB, free: 6.527 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.924e-05/0.1088, allocations: 28 kB / 341.8 MB, free: 6.5 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.278e-05/0.1088, allocations: 12 kB / 341.8 MB, free: 6.488 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001511/0.1103, allocations: 0.6765 MB / 342.5 MB, free: 5.809 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.003233/0.1136, allocations: 2.316 MB / 344.8 MB, free: 3.344 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00136/0.1149, allocations: 0.5943 MB / 345.4 MB, free: 2.738 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006562/0.1156, allocations: 334 kB / 345.8 MB, free: 2.41 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.571e-05/0.1157, allocations: 8.438 kB / 345.8 MB, free: 2.402 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008355/0.1165, allocations: 425.4 kB / 346.2 MB, free: 1.961 MB / 286.1 MB Notification: Performance of pre-optimization done (n=54): time 2.264e-06/0.1165, allocations: 0 / 346.2 MB, free: 1.961 MB / 286.1 MB Notification: Performance of matching and sorting (n=94): time 0.06615/0.1827, allocations: 15.4 MB / 361.6 MB, free: 2.465 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.94e-05/0.1828, allocations: 145.5 kB / 361.7 MB, free: 2.289 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000601/0.1834, allocations: 498.8 kB / 362.2 MB, free: 1.793 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001855/0.1836, allocations: 49.64 kB / 362.3 MB, free: 1.738 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002563/0.1839, allocations: 367.9 kB / 362.6 MB, free: 1.371 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003117/0.1842, allocations: 315.5 kB / 362.9 MB, free: 1.059 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003603/0.1846, allocations: 178.5 kB / 363.1 MB, free: 0.8789 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001511/0.1847, allocations: 382.8 kB / 363.5 MB, free: 0.4961 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001867/0.1866, allocations: 0.7242 MB / 364.2 MB, free: 15.77 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001938/0.1886, allocations: 0.9187 MB / 365.1 MB, free: 14.77 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00366/0.1922, allocations: 1.666 MB / 366.8 MB, free: 13.02 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.639e-06/0.1922, allocations: 0 / 366.8 MB, free: 13.02 MB / 318.1 MB Notification: Performance of matching and sorting (n=124) (initialization): time 0.02195/0.2142, allocations: 5.346 MB / 372.1 MB, free: 7.645 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.187e-05/0.2143, allocations: 67.39 kB / 372.2 MB, free: 7.566 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.711e-05/0.2143, allocations: 8 kB / 372.2 MB, free: 7.559 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.03505/0.2494, allocations: 6.836 MB / 379 MB, free: 0.707 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006532/0.2501, allocations: 143.7 kB / 379.2 MB, free: 0.5664 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.16/0.4101, allocations: 3.149 MB / 382.3 MB, free: 52.35 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001609/0.4118, allocations: 188.4 kB / 382.5 MB, free: 52.35 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001134/0.4119, allocations: 45.17 kB / 382.5 MB, free: 52.35 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.000355/0.4123, allocations: 223.6 kB / 382.8 MB, free: 52.23 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001397/0.4124, allocations: 74.75 kB / 382.8 MB, free: 52.23 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02191/0.4343, allocations: 5.105 MB / 387.9 MB, free: 51.43 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.809e-05/0.4344, allocations: 10.56 kB / 388 MB, free: 51.43 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.305e-06/0.4344, allocations: 0 / 388 MB, free: 51.43 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.18e-05/0.4344, allocations: 11.25 kB / 388 MB, free: 51.42 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001364/0.4358, allocations: 1.081 MB / 389 MB, free: 50.86 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.588e-06/0.4358, allocations: 2.828 kB / 389 MB, free: 50.86 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00049/0.4363, allocations: 97.55 kB / 389.1 MB, free: 50.86 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.03093/0.4672, allocations: 6.794 MB / 395.9 MB, free: 49.27 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002179/0.4675, allocations: 19.95 kB / 396 MB, free: 49.25 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004862/0.4724, allocations: 3.052 MB / 399 MB, free: 47.22 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.168e-06/0.4724, allocations: 0 / 399 MB, free: 47.22 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02117/0.4936, allocations: 5.99 MB / 405 MB, free: 41.32 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001941/0.4938, allocations: 144.2 kB / 405.1 MB, free: 41.16 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002499/0.4941, allocations: 16 kB / 405.2 MB, free: 41.14 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001293/0.4954, allocations: 171.8 kB / 405.3 MB, free: 40.98 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002387/0.4956, allocations: 96.88 kB / 405.4 MB, free: 40.88 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.989e-05/0.4957, allocations: 31.97 kB / 405.4 MB, free: 40.85 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0003019/0.496, allocations: 338.9 kB / 405.8 MB, free: 40.52 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.496, allocations: 4 kB / 405.8 MB, free: 40.52 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.000693/0.4967, allocations: 253.6 kB / 406 MB, free: 40.27 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.0002331/0.497, allocations: 135.8 kB / 406.2 MB, free: 40.14 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.00606/0.503, allocations: 2.165 MB / 408.3 MB, free: 37.95 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.697e-06/0.5031, allocations: 4.062 kB / 408.3 MB, free: 37.95 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00297/0.5061, allocations: 1.096 MB / 409.4 MB, free: 36.86 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007195/0.5068, allocations: 135.1 kB / 409.6 MB, free: 36.74 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003565/0.5104, allocations: 1.714 MB / 411.3 MB, free: 35.02 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003202/0.5107, allocations: 0.9375 MB / 412.2 MB, free: 34.06 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0003573/0.5111, allocations: 57.03 kB / 412.3 MB, free: 34 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000131/0.5112, allocations: 31.44 kB / 412.3 MB, free: 33.97 MB / 318.1 MB Notification: Performance of SimCode: time 6.92e-07/0.5112, allocations: 0 / 412.3 MB, free: 33.97 MB / 318.1 MB Notification: Performance of Templates: time 0.02613/0.5374, allocations: 22.31 MB / 434.6 MB, free: 11.68 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 gbode -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