Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate.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.HeatingNPN_OrGate,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|HeatCapacitor1.T",fileNamePrefix="Modelica_3.2.3_cpp_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_cpp_Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001398/0.001397, allocations: 179.4 kB / 8.364 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 1.96/1.96, allocations: 205.3 MB / 214.1 MB, free: 14.15 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.001096/0.001096, allocations: 93 kB / 262.1 MB, free: 13.88 MB / 219.1 MB Notification: Performance of FrontEnd - loaded program: time 2.445e-05/2.444e-05, allocations: 4 kB / 314.8 MB, free: 9.168 MB / 267.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3417/0.3418, allocations: 47.56 MB / 362.3 MB, free: 45.84 MB / 299.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1275/0.4693, allocations: 80.41 MB / 442.7 MB, free: 5.918 MB / 331.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002744/0.4697, allocations: 67.97 kB / 442.8 MB, free: 5.852 MB / 331.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.05774/0.5274, allocations: 12.01 MB / 454.8 MB, free: 9.844 MB / 347.1 MB Notification: Performance of FrontEnd: time 1.793e-06/0.5275, allocations: 0 / 454.8 MB, free: 9.844 MB / 347.1 MB Notification: Performance of Transformations before backend: time 4.72e-05/0.5275, allocations: 16 kB / 454.8 MB, free: 9.828 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.003827/0.5314, allocations: 1.037 MB / 455.9 MB, free: 8.734 MB / 347.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.028e-05/0.5314, allocations: 12.03 kB / 455.9 MB, free: 8.723 MB / 347.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003194/0.5318, allocations: 91.62 kB / 456 MB, free: 8.633 MB / 347.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001431/0.5332, allocations: 0.4958 MB / 456.5 MB, free: 8.09 MB / 347.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.292e-05/0.5333, allocations: 20 kB / 456.5 MB, free: 8.07 MB / 347.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001564/0.5335, allocations: 40 kB / 456.5 MB, free: 8.031 MB / 347.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001508/0.535, allocations: 0.4908 MB / 457 MB, free: 7.543 MB / 347.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001388/0.5364, allocations: 479.8 kB / 457.5 MB, free: 7.066 MB / 347.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.686e-05/0.5364, allocations: 0 / 457.5 MB, free: 7.066 MB / 347.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.525e-05/0.5365, allocations: 8.828 kB / 457.5 MB, free: 7.059 MB / 347.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.133e-05/0.5366, allocations: 16 kB / 457.5 MB, free: 7.043 MB / 347.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006357/0.5429, allocations: 2.181 MB / 459.7 MB, free: 4.75 MB / 347.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001198/0.5442, allocations: 440 kB / 460.1 MB, free: 4.312 MB / 347.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006143/0.5448, allocations: 238.2 kB / 460.4 MB, free: 4.078 MB / 347.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.504e-05/0.545, allocations: 12.42 kB / 460.4 MB, free: 4.066 MB / 347.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001388/0.5464, allocations: 336.7 kB / 460.7 MB, free: 3.711 MB / 347.1 MB Notification: Performance of pre-optimization done (n=54): time 6.833e-06/0.5464, allocations: 0 / 460.7 MB, free: 3.711 MB / 347.1 MB Notification: Performance of matching and sorting (n=94): time 0.1194/0.6658, allocations: 13.8 MB / 474.5 MB, free: 5.848 MB / 363.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001104/0.666, allocations: 142.2 kB / 474.6 MB, free: 5.68 MB / 363.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007291/0.6667, allocations: 394.1 kB / 475 MB, free: 5.285 MB / 363.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002302/0.667, allocations: 25.7 kB / 475 MB, free: 5.254 MB / 363.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003622/0.6674, allocations: 394.4 kB / 475.4 MB, free: 4.863 MB / 363.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004213/0.6678, allocations: 307.5 kB / 475.7 MB, free: 4.559 MB / 363.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001203/0.6679, allocations: 0 / 475.7 MB, free: 4.559 MB / 363.1 MB Notification: Performance of setup shared object (initialization): time 0.0001712/0.6681, allocations: 346.8 kB / 476.1 MB, free: 4.211 MB / 363.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001313/0.6694, allocations: 458.6 kB / 476.5 MB, free: 3.762 MB / 363.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001558/0.671, allocations: 0.6464 MB / 477.2 MB, free: 3.039 MB / 363.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00327/0.6743, allocations: 0.6862 MB / 477.8 MB, free: 2.355 MB / 363.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.937e-06/0.6744, allocations: 5.062 kB / 477.8 MB, free: 2.352 MB / 363.1 MB Notification: Performance of matching and sorting (n=124) (initialization): time 0.04027/0.7146, allocations: 4.844 MB / 482.7 MB, free: 13.49 MB / 379.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.141e-05/0.7148, allocations: 59.41 kB / 482.7 MB, free: 13.42 MB / 379.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.938e-05/0.7148, allocations: 7.938 kB / 482.8 MB, free: 13.41 MB / 379.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0433/0.7581, allocations: 4.803 MB / 487.6 MB, free: 8.602 MB / 379.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001333/0.7595, allocations: 171.8 kB / 487.7 MB, free: 8.434 MB / 379.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01141/0.7709, allocations: 3.227 MB / 491 MB, free: 5.152 MB / 379.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003132/0.7741, allocations: 203.7 kB / 491.2 MB, free: 4.953 MB / 379.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002399/0.7744, allocations: 43.97 kB / 491.2 MB, free: 4.91 MB / 379.1 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: $DER.T2.vbc:DUMMY_DER(fixed = false ) "Base-collector voltage" type: Real $DER.T1.ibe:DUMMY_DER(fixed = false ) "Base-emitter diode current" type: Real $DER.T1.vbc:DUMMY_DER(fixed = false ) "Base-collector 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.0004715/0.7749, allocations: 136.5 kB / 491.3 MB, free: 4.77 MB / 379.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002604/0.7752, allocations: 75.06 kB / 491.4 MB, free: 4.695 MB / 379.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03922/0.8144, allocations: 4.777 MB / 496.2 MB, free: 15.9 MB / 395.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.084e-05/0.8145, allocations: 19.94 kB / 496.2 MB, free: 15.88 MB / 395.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.438e-06/0.8145, allocations: 0 / 496.2 MB, free: 15.88 MB / 395.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.318e-05/0.8146, allocations: 7.984 kB / 496.2 MB, free: 15.88 MB / 395.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002183/0.8167, allocations: 1.008 MB / 497.2 MB, free: 14.83 MB / 395.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.194e-06/0.8168, allocations: 0 / 497.2 MB, free: 14.83 MB / 395.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001097/0.8179, allocations: 131.8 kB / 497.3 MB, free: 14.7 MB / 395.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.04355/0.8615, allocations: 4.808 MB / 0.4904 GB, free: 9.879 MB / 395.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002683/0.8618, allocations: 15.97 kB / 0.4904 GB, free: 9.863 MB / 395.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01131/0.8731, allocations: 3.224 MB / 0.4935 GB, free: 6.586 MB / 395.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.999e-06/0.8732, allocations: 3.938 kB / 0.4935 GB, free: 6.582 MB / 395.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04142/0.9146, allocations: 5.414 MB / 0.4988 GB, free: 1.141 MB / 395.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002939/0.915, allocations: 140.2 kB / 0.499 GB, free: 0.9844 MB / 395.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002905/0.9153, allocations: 4 kB / 0.499 GB, free: 0.9805 MB / 395.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002841/0.9181, allocations: 195.8 kB / 0.4992 GB, free: 0.7891 MB / 395.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004393/0.9186, allocations: 104.6 kB / 0.4993 GB, free: 0.6875 MB / 395.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001624/0.9188, allocations: 31.97 kB / 0.4993 GB, free: 0.6562 MB / 395.1 MB Notification: Performance of sorting global known variables: time 0.0005324/0.9193, allocations: 302.8 kB / 0.4996 GB, free: 368 kB / 395.1 MB Notification: Performance of sort global known variables: time 4.2e-07/0.9193, allocations: 0 / 0.4996 GB, free: 368 kB / 395.1 MB Notification: Performance of remove unused functions: time 0.001214/0.9206, allocations: 235.9 kB / 0.4998 GB, free: 132 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.0003877/0.921, allocations: 119.2 kB / 0.4999 GB, free: 0 / 395.1 MB Notification: Performance of simCode: created initialization part: time 0.2553/1.176, allocations: 1.596 MB / 0.5015 GB, free: 126 MB / 395.1 MB Notification: Performance of simCode: created event and clocks part: time 7.504e-06/1.176, allocations: 3.469 kB / 0.5015 GB, free: 126 MB / 395.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00566/1.182, allocations: 0.9377 MB / 0.5024 GB, free: 126 MB / 395.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009622/1.183, allocations: 82.2 kB / 0.5025 GB, free: 126 MB / 395.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004008/1.187, allocations: 1.179 MB / 0.5036 GB, free: 125.6 MB / 395.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005361/1.188, allocations: 0.9587 MB / 0.5046 GB, free: 124.9 MB / 395.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003014/1.188, allocations: 33.84 kB / 0.5046 GB, free: 124.9 MB / 395.1 MB Notification: Performance of SimCode: time 9.32e-07/1.188, allocations: 1.859 kB / 0.5046 GB, free: 124.9 MB / 395.1 MB Notification: Performance of Templates: time 0.03152/1.219, allocations: 16.06 MB / 0.5203 GB, free: 121.5 MB / 395.1 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate.sim & ./Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_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","../files/Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches