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") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001697/0.001696, allocations: 179.7 kB / 8.152 MB, free: 2.188 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.651/1.651, allocations: 205.2 MB / 213.8 MB, free: 13.86 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001246/0.001245, allocations: 91.02 kB / 261.8 MB, free: 13.61 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 8.475e-06/8.606e-06, allocations: 0 / 314.3 MB, free: 9.016 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2371/0.2372, allocations: 47.55 MB / 361.8 MB, free: 45.65 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1683/0.4055, allocations: 80.33 MB / 442.2 MB, free: 5.738 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002711/0.4059, allocations: 75.95 kB / 442.2 MB, free: 5.664 MB / 330.7 MB Notification: Performance of FrontEnd: time 0.05684/0.4627, allocations: 11.87 MB / 454.1 MB, free: 9.801 MB / 346.7 MB Notification: Performance of Transformations before backend: time 4.239e-05/0.4628, allocations: 12 kB / 454.1 MB, free: 9.789 MB / 346.7 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.003979/0.4668, allocations: 1.076 MB / 455.2 MB, free: 8.656 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.614e-05/0.4669, allocations: 8.031 kB / 455.2 MB, free: 8.648 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003402/0.4672, allocations: 94.95 kB / 455.3 MB, free: 8.555 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001419/0.4686, allocations: 0.4898 MB / 455.8 MB, free: 8.023 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.624e-05/0.4687, allocations: 20 kB / 455.8 MB, free: 8.004 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001529/0.4689, allocations: 39.98 kB / 455.8 MB, free: 7.965 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001641/0.4705, allocations: 0.4986 MB / 456.3 MB, free: 7.465 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001463/0.472, allocations: 471.9 kB / 456.8 MB, free: 7 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.589e-05/0.472, allocations: 0 / 456.8 MB, free: 7 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.719e-05/0.4721, allocations: 0 / 456.8 MB, free: 7 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.258e-05/0.4722, allocations: 19.94 kB / 456.8 MB, free: 6.98 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006485/0.4787, allocations: 2.214 MB / 459 MB, free: 4.652 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001209/0.4799, allocations: 408.1 kB / 459.4 MB, free: 4.246 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006492/0.4806, allocations: 242.1 kB / 459.7 MB, free: 4.008 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.355e-05/0.4807, allocations: 4.438 kB / 459.7 MB, free: 4.004 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007726/0.4815, allocations: 316.7 kB / 460 MB, free: 3.668 MB / 346.7 MB Notification: Performance of pre-optimization done (n=54): time 3.256e-06/0.4815, allocations: 4 kB / 460 MB, free: 3.664 MB / 346.7 MB Notification: Performance of matching and sorting (n=94): time 0.1264/0.6078, allocations: 14.28 MB / 474.3 MB, free: 5.309 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.616e-05/0.608, allocations: 137.3 kB / 474.4 MB, free: 5.141 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007798/0.6088, allocations: 398 kB / 474.8 MB, free: 4.742 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002283/0.609, allocations: 25.7 kB / 474.8 MB, free: 4.711 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002696/0.6093, allocations: 326.4 kB / 475.1 MB, free: 4.387 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000392/0.6097, allocations: 303.5 kB / 475.4 MB, free: 4.086 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001262/0.6098, allocations: 5.031 kB / 475.4 MB, free: 4.082 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001513/0.61, allocations: 346.8 kB / 475.8 MB, free: 3.734 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001477/0.6115, allocations: 458 kB / 476.2 MB, free: 3.289 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001629/0.6131, allocations: 0.6359 MB / 476.8 MB, free: 2.574 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003471/0.6166, allocations: 0.7023 MB / 477.6 MB, free: 1.875 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.448e-06/0.6167, allocations: 4 kB / 477.6 MB, free: 1.871 MB / 362.7 MB Notification: Performance of matching and sorting (n=124) (initialization): time 0.04505/0.6617, allocations: 4.955 MB / 482.5 MB, free: 12.9 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.668e-05/0.6618, allocations: 4 kB / 482.5 MB, free: 12.89 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.229e-05/0.6618, allocations: 13.89 kB / 482.5 MB, free: 12.88 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.04233/0.7042, allocations: 4.305 MB / 486.8 MB, free: 8.57 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001479/0.7057, allocations: 191.7 kB / 487 MB, free: 8.383 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01342/0.7191, allocations: 3.323 MB / 490.3 MB, free: 5.008 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00321/0.7224, allocations: 227.7 kB / 490.6 MB, free: 4.785 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002037/0.7226, allocations: 43.97 kB / 490.6 MB, free: 4.742 MB / 378.7 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.0004319/0.7231, allocations: 51.22 kB / 490.7 MB, free: 4.688 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002786/0.7234, allocations: 75.06 kB / 490.7 MB, free: 4.613 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.04464/0.768, allocations: 4.913 MB / 495.6 MB, free: 15.68 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.459e-05/0.7681, allocations: 12 kB / 495.7 MB, free: 15.67 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.367e-06/0.7681, allocations: 0 / 495.7 MB, free: 15.67 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.833e-05/0.7682, allocations: 7.891 kB / 495.7 MB, free: 15.66 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002283/0.7705, allocations: 0.9985 MB / 496.7 MB, free: 14.62 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.602e-06/0.7705, allocations: 0 / 496.7 MB, free: 14.62 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00125/0.7718, allocations: 143.8 kB / 496.8 MB, free: 14.48 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.04929/0.8211, allocations: 4.957 MB / 0.49 GB, free: 9.512 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002874/0.8214, allocations: 15.97 kB / 0.49 GB, free: 9.496 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01389/0.8353, allocations: 3.444 MB / 0.4934 GB, free: 6 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.623e-06/0.8354, allocations: 0 / 0.4934 GB, free: 6 MB / 394.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.04629/0.8817, allocations: 5.555 MB / 0.4988 GB, free: 424 kB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002811/0.882, allocations: 136.2 kB / 0.4989 GB, free: 268 kB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002996/0.8823, allocations: 7.906 kB / 0.4989 GB, free: 260 kB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003075/0.8854, allocations: 227.8 kB / 0.4992 GB, free: 32 kB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.1175/1.003, allocations: 101.3 kB / 0.4993 GB, free: 166.5 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002493/1.003, allocations: 34.22 kB / 0.4993 GB, free: 166.5 MB / 394.7 MB Notification: Performance of sort global known variables: time 0.0004801/1.004, allocations: 287.9 kB / 0.4996 GB, free: 166.4 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.001044/1.005, allocations: 229 kB / 0.4998 GB, free: 166.4 MB / 394.7 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.0003371/1.005, allocations: 134.1 kB / 0.4999 GB, free: 166.3 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.007191/1.012, allocations: 1.523 MB / 0.5014 GB, free: 166.3 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 4.989e-06/1.012, allocations: 0 / 0.5014 GB, free: 166.3 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.005971/1.018, allocations: 0.9436 MB / 0.5023 GB, free: 166.2 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009498/1.019, allocations: 89.88 kB / 0.5024 GB, free: 166.2 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005157/1.025, allocations: 1.304 MB / 0.5037 GB, free: 165.9 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006749/1.025, allocations: 1.007 MB / 0.5047 GB, free: 165.2 MB / 394.7 MB Notification: Performance of SimCode: time 1.533e-06/1.025, allocations: 0 / 0.5047 GB, free: 165.2 MB / 394.7 MB Notification: Performance of Templates: time 0.03044/1.056, allocations: 17.1 MB / 0.5214 GB, free: 162.4 MB / 394.7 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