Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|HeatCapacitor1.T",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate") translateModel(Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|HeatCapacitor1.T",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.00218/0.002179, allocations: 177.8 kB / 8.36 MB, free: 0.7148 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.012/2.012, allocations: 205.3 MB / 214.1 MB, free: 14.13 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001139/0.001139, allocations: 90.31 kB / 262.1 MB, free: 13.87 MB / 219.1 MB Notification: Performance of FrontEnd - loaded program: time 2.022e-05/2.02e-05, allocations: 4 kB / 314.8 MB, free: 9.152 MB / 267.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3266/0.3266, allocations: 47.56 MB / 362.3 MB, free: 45.84 MB / 299.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1305/0.4572, allocations: 80.42 MB / 442.8 MB, free: 5.891 MB / 331.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000267/0.4575, allocations: 75.95 kB / 442.8 MB, free: 5.816 MB / 331.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.05716/0.5147, allocations: 11.98 MB / 454.8 MB, free: 9.84 MB / 347.1 MB Notification: Performance of FrontEnd: time 4.759e-06/0.5148, allocations: 0 / 454.8 MB, free: 9.84 MB / 347.1 MB Notification: Performance of Transformations before backend: time 4.527e-05/0.5148, allocations: 15.94 kB / 454.8 MB, free: 9.824 MB / 347.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.003814/0.5187, allocations: 1.045 MB / 455.9 MB, free: 8.723 MB / 347.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.059e-05/0.5187, allocations: 8.031 kB / 455.9 MB, free: 8.715 MB / 347.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003063/0.519, allocations: 86.97 kB / 456 MB, free: 8.629 MB / 347.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001446/0.5205, allocations: 0.4959 MB / 456.5 MB, free: 8.086 MB / 347.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.566e-05/0.5206, allocations: 20.84 kB / 456.5 MB, free: 8.066 MB / 347.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001544/0.5207, allocations: 39.94 kB / 456.5 MB, free: 8.027 MB / 347.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001549/0.5223, allocations: 0.4947 MB / 457 MB, free: 7.535 MB / 347.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001403/0.5237, allocations: 471.9 kB / 457.5 MB, free: 7.066 MB / 347.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.938e-05/0.5238, allocations: 0 / 457.5 MB, free: 7.066 MB / 347.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.997e-05/0.5239, allocations: 11.98 kB / 457.5 MB, free: 7.055 MB / 347.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.935e-05/0.5239, allocations: 12 kB / 457.5 MB, free: 7.043 MB / 347.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006487/0.5304, allocations: 2.186 MB / 459.7 MB, free: 4.742 MB / 347.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001206/0.5317, allocations: 444 kB / 460.1 MB, free: 4.301 MB / 347.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006182/0.5323, allocations: 239.8 kB / 460.3 MB, free: 4.066 MB / 347.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.176e-05/0.5324, allocations: 4.438 kB / 460.4 MB, free: 4.062 MB / 347.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008469/0.5333, allocations: 340.7 kB / 460.7 MB, free: 3.703 MB / 347.1 MB Notification: Performance of pre-optimization done (n=54): time 3.156e-06/0.5333, allocations: 0 / 460.7 MB, free: 3.703 MB / 347.1 MB Notification: Performance of matching and sorting (n=94): time 0.1129/0.6462, allocations: 13.78 MB / 474.5 MB, free: 5.855 MB / 363.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001109/0.6464, allocations: 141.3 kB / 474.6 MB, free: 5.688 MB / 363.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007564/0.6471, allocations: 390.1 kB / 475 MB, free: 5.301 MB / 363.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002728/0.6474, allocations: 33.64 kB / 475 MB, free: 5.262 MB / 363.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003701/0.6478, allocations: 398.4 kB / 475.4 MB, free: 4.867 MB / 363.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004203/0.6482, allocations: 299.5 kB / 475.7 MB, free: 4.57 MB / 363.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001208/0.6484, allocations: 4 kB / 475.7 MB, free: 4.566 MB / 363.1 MB Notification: Performance of setup shared object (initialization): time 0.0001687/0.6485, allocations: 346.8 kB / 476 MB, free: 4.219 MB / 363.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001334/0.6499, allocations: 454.6 kB / 476.5 MB, free: 3.773 MB / 363.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001538/0.6514, allocations: 0.6348 MB / 477.1 MB, free: 3.062 MB / 363.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00325/0.6547, allocations: 0.6901 MB / 477.8 MB, free: 2.375 MB / 363.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.265e-05/0.6548, allocations: 4 kB / 477.8 MB, free: 2.371 MB / 363.1 MB Notification: Performance of matching and sorting (n=124) (initialization): time 0.03995/0.6947, allocations: 4.844 MB / 482.7 MB, free: 13.51 MB / 379.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.63e-05/0.6949, allocations: 63.53 kB / 482.7 MB, free: 13.44 MB / 379.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.923e-05/0.6949, allocations: 14.42 kB / 482.7 MB, free: 13.43 MB / 379.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.04311/0.738, allocations: 4.783 MB / 487.5 MB, free: 8.633 MB / 379.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001362/0.7394, allocations: 179.7 kB / 487.7 MB, free: 8.457 MB / 379.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009772/0.7492, allocations: 3.067 MB / 490.8 MB, free: 5.336 MB / 379.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003071/0.7524, allocations: 203.8 kB / 491 MB, free: 5.137 MB / 379.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002432/0.7527, allocations: 47.97 kB / 491 MB, free: 5.09 MB / 379.1 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: T1.vcb:DUMMY_STATE(unit = "V" ) "Collector-base voltage" type: Real T2.vcb:DUMMY_STATE(unit = "V" ) "Collector-base voltage" type: Real Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: $DER.T2.vcb:DUMMY_DER(fixed = false ) "Collector-base voltage" type: Real $DER.T1.veb:DUMMY_DER(fixed = false ) "Emitter-base voltage" type: Real $DER.T1.vcb:DUMMY_DER(fixed = false ) "Collector-base voltage" type: Real $DER.T2.T_heatPort:DUMMY_DER(fixed = false ) "Temperature of heatPort" type: Real $DER.T1.T_heatPort:DUMMY_DER(fixed = false ) "Temperature of heatPort" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 23 * Number of states: 0 () * Number of discrete variables: 10 ($whenCondition2,$whenCondition1,$PRE.V1.signalSource.T_start,V1.signalSource.T_start,$PRE.V1.signalSource.count,V1.signalSource.count,$PRE.V2.signalSource.T_start,V2.signalSource.T_start,$PRE.V2.signalSource.count,V2.signalSource.count) * Number of discrete 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 (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {5 32,5 32} Notification: Performance of prepare postOptimizeDAE: time 0.000478/0.7531, allocations: 138.8 kB / 491.1 MB, free: 4.945 MB / 379.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000266/0.7534, allocations: 83.02 kB / 491.2 MB, free: 4.863 MB / 379.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03937/0.7928, allocations: 4.772 MB / 496 MB, free: 72 kB / 379.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.809e-05/0.7929, allocations: 8 kB / 496 MB, free: 64 kB / 379.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.106e-05/0.7929, allocations: 7.953 kB / 496 MB, free: 56 kB / 379.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.789e-05/0.793, allocations: 7.984 kB / 496 MB, free: 48 kB / 379.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002313/0.7953, allocations: 1.014 MB / 497 MB, free: 15 MB / 395.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.295e-05/0.7953, allocations: 3.953 kB / 497 MB, free: 14.99 MB / 395.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001097/0.7965, allocations: 119.9 kB / 497.2 MB, free: 14.88 MB / 395.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.04359/0.8401, allocations: 4.8 MB / 0.4902 GB, free: 10.06 MB / 395.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002836/0.8404, allocations: 19.91 kB / 0.4902 GB, free: 10.04 MB / 395.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009845/0.8503, allocations: 3.068 MB / 0.4932 GB, free: 6.922 MB / 395.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.103e-06/0.8503, allocations: 0 / 0.4932 GB, free: 6.922 MB / 395.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04162/0.892, allocations: 5.409 MB / 0.4985 GB, free: 1.484 MB / 395.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003213/0.8923, allocations: 144.2 kB / 0.4986 GB, free: 1.324 MB / 395.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000356/0.8927, allocations: 4 kB / 0.4986 GB, free: 1.32 MB / 395.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002988/0.8957, allocations: 199.8 kB / 0.4988 GB, free: 1.125 MB / 395.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005109/0.8963, allocations: 100.6 kB / 0.4989 GB, free: 1.027 MB / 395.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001967/0.8965, allocations: 35.97 kB / 0.4989 GB, free: 0.9922 MB / 395.1 MB Notification: Performance of sorting global known variables: time 0.0005773/0.8971, allocations: 295 kB / 0.4992 GB, free: 0.7031 MB / 395.1 MB Notification: Performance of sort global known variables: time 4.21e-07/0.8971, allocations: 0 / 0.4992 GB, free: 0.7031 MB / 395.1 MB Notification: Performance of remove unused functions: time 0.001358/0.8985, allocations: 228 kB / 0.4994 GB, free: 492 kB / 395.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) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {5 32,5 36} Notification: Performance of Backend phase and start with SimCode phase: time 0.0004547/0.899, allocations: 135 kB / 0.4996 GB, free: 344 kB / 395.1 MB Notification: Performance of simCode: created initialization part: time 0.267/1.166, allocations: 1.45 MB / 0.501 GB, free: 125.8 MB / 395.1 MB Notification: Performance of simCode: created event and clocks part: time 1.226e-05/1.166, allocations: 2.562 kB / 0.501 GB, free: 125.8 MB / 395.1 MB Notification: Performance of simCode: created simulation system equations: time 0.005955/1.172, allocations: 0.7844 MB / 0.5018 GB, free: 125.8 MB / 395.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001312/1.173, allocations: 87.94 kB / 0.5018 GB, free: 125.8 MB / 395.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00489/1.178, allocations: 1.195 MB / 0.503 GB, free: 125.5 MB / 395.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007147/1.179, allocations: 0.9569 MB / 0.5039 GB, free: 124.8 MB / 395.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003915/1.18, allocations: 32.78 kB / 0.504 GB, free: 124.8 MB / 395.1 MB Notification: Performance of SimCode: time 2.494e-06/1.18, allocations: 0 / 0.504 GB, free: 124.8 MB / 395.1 MB Notification: Performance of Templates: time 0.04567/1.225, allocations: 16.06 MB / 0.5197 GB, free: 121.4 MB / 395.1 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate.sim & ./Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Analog/Examples/HeatingPNP_NORGate/HeatingPNP_NORGate.csv","../files/Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches