Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: translateModel(Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|HeatCapacitor1.T",fileNamePrefix="Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate") translateModel(Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|HeatCapacitor1.T",fileNamePrefix="Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0008971/0.0009005, allocations: 196.4 kB / 17.38 MB, free: 4.312 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.26/1.26, allocations: 226.6 MB / 244.7 MB, free: 8.152 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007005/0.0007008, allocations: 104.2 kB / 296.8 MB, free: 6.867 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002399/0.0002401, allocations: 11.98 kB / 356.7 MB, free: 10.89 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1967/0.1969, allocations: 51.29 MB / 408 MB, free: 27.71 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate): time 0.003168/0.2001, allocations: 4.299 MB / 412.3 MB, free: 23.4 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001777/0.202, allocations: 1.245 MB / 413.6 MB, free: 22.16 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002677/0.2022, allocations: 13.78 kB / 413.6 MB, free: 22.14 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001832/0.2024, allocations: 87.3 kB / 413.7 MB, free: 22.06 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003427/0.2028, allocations: 214.7 kB / 413.9 MB, free: 21.85 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000481/0.2033, allocations: 224.2 kB / 414.1 MB, free: 21.63 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0006397/0.2039, allocations: 0.9935 MB / 415.1 MB, free: 20.63 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002839/0.2042, allocations: 227.3 kB / 415.3 MB, free: 20.4 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002796/0.2045, allocations: 350.7 kB / 415.7 MB, free: 20.05 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003296/0.2048, allocations: 418.2 kB / 416.1 MB, free: 19.64 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 7.845e-05/0.2049, allocations: 44 kB / 416.1 MB, free: 19.6 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001535/0.2051, allocations: 67.98 kB / 416.2 MB, free: 19.54 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 9.226e-05/0.2052, allocations: 147.4 kB / 416.3 MB, free: 19.39 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002518/0.2054, allocations: 415.7 kB / 416.7 MB, free: 18.98 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004457/0.2059, allocations: 0.7411 MB / 417.5 MB, free: 18.23 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.188e-06/0.2059, allocations: 0 / 417.5 MB, free: 18.23 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.813e-06/0.2059, allocations: 0 / 417.5 MB, free: 18.23 MB / 298.7 MB Notification: Performance of Transformations before backend: time 8.035e-06/0.2059, allocations: 4 kB / 417.5 MB, free: 18.23 MB / 298.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 158 * Number of variables: 158 Notification: Performance of Generate backend data structure: time 0.001837/0.2078, allocations: 1.153 MB / 418.6 MB, free: 17.01 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.626e-05/0.2078, allocations: 8.031 kB / 418.6 MB, free: 17 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001211/0.2079, allocations: 91.91 kB / 418.7 MB, free: 16.91 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004381/0.2084, allocations: 479.5 kB / 419.2 MB, free: 16.4 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.175e-05/0.2084, allocations: 45.69 kB / 419.2 MB, free: 16.36 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.162e-05/0.2085, allocations: 68.36 kB / 419.3 MB, free: 16.29 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001133/0.2097, allocations: 0.6822 MB / 420 MB, free: 15.6 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.943e-05/0.2097, allocations: 3.984 kB / 420 MB, free: 15.6 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.645e-05/0.2098, allocations: 24 kB / 420 MB, free: 15.57 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.218e-05/0.2098, allocations: 16 kB / 420 MB, free: 15.56 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001406/0.2112, allocations: 0.7508 MB / 420.8 MB, free: 14.81 MB / 298.7 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.003034/0.2142, allocations: 2.433 MB / 423.2 MB, free: 12.22 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001202/0.2154, allocations: 0.6358 MB / 423.9 MB, free: 11.58 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006511/0.2161, allocations: 361.9 kB / 424.2 MB, free: 11.22 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.934e-05/0.2162, allocations: 12.42 kB / 424.2 MB, free: 11.21 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007889/0.217, allocations: 456.8 kB / 424.7 MB, free: 10.74 MB / 298.7 MB Notification: Performance of pre-optimization done (n=54): time 2.134e-06/0.217, allocations: 0 / 424.7 MB, free: 10.74 MB / 298.7 MB Notification: Performance of matching and sorting (n=94): time 0.06459/0.2816, allocations: 16.74 MB / 441.4 MB, free: 9.902 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.378e-05/0.2817, allocations: 145.5 kB / 441.6 MB, free: 9.73 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007499/0.2825, allocations: 0.5223 MB / 442.1 MB, free: 9.199 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001689/0.2827, allocations: 41.7 kB / 442.1 MB, free: 9.152 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002646/0.2829, allocations: 383.8 kB / 442.5 MB, free: 8.77 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002637/0.2832, allocations: 315.4 kB / 442.8 MB, free: 8.457 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.845e-05/0.2833, allocations: 28 kB / 442.8 MB, free: 8.43 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001542/0.2835, allocations: 386.7 kB / 443.2 MB, free: 8.043 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002389/0.2858, allocations: 0.7908 MB / 444 MB, free: 7.254 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002337/0.2882, allocations: 1.029 MB / 445 MB, free: 6.133 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00404/0.2923, allocations: 1.841 MB / 446.9 MB, free: 4.199 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.023e-06/0.2923, allocations: 4 kB / 446.9 MB, free: 4.195 MB / 314.7 MB Notification: Performance of matching and sorting (n=128) (initialization): time 0.02251/0.3148, allocations: 5.651 MB / 452.5 MB, free: 14.51 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.135e-05/0.3149, allocations: 67.39 kB / 452.6 MB, free: 14.43 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.382e-05/0.315, allocations: 15.88 kB / 452.6 MB, free: 14.41 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.03365/0.3486, allocations: 7.309 MB / 459.9 MB, free: 7.09 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000726/0.3494, allocations: 187.7 kB / 460.1 MB, free: 6.906 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006803/0.3562, allocations: 3.215 MB / 463.3 MB, free: 3.637 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001671/0.3579, allocations: 227.8 kB / 463.5 MB, free: 3.414 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001611/0.3581, allocations: 47.97 kB / 463.6 MB, free: 3.367 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 27 * 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (54): * Single equations (assignments): 50 * 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.0004665/0.3586, allocations: 221.7 kB / 463.8 MB, free: 3.141 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000192/0.3588, allocations: 82.97 kB / 463.9 MB, free: 3.059 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02227/0.3811, allocations: 5.466 MB / 469.3 MB, free: 13.57 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.786e-05/0.3811, allocations: 8 kB / 469.3 MB, free: 13.56 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.796e-06/0.3812, allocations: 0 / 469.3 MB, free: 13.56 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.473e-05/0.3812, allocations: 7.922 kB / 469.4 MB, free: 13.55 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001498/0.3827, allocations: 1.12 MB / 470.5 MB, free: 12.38 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.153e-06/0.3827, allocations: 0 / 470.5 MB, free: 12.38 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005334/0.3833, allocations: 119.9 kB / 470.6 MB, free: 12.27 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.03365/0.4169, allocations: 7.289 MB / 477.9 MB, free: 4.961 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002328/0.4172, allocations: 23.98 kB / 477.9 MB, free: 4.938 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005729/0.4229, allocations: 3.088 MB / 481 MB, free: 1.793 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.475e-06/0.423, allocations: 0 / 481 MB, free: 1.793 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02409/0.4471, allocations: 6.424 MB / 487.4 MB, free: 11.34 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002267/0.4473, allocations: 144.2 kB / 487.6 MB, free: 11.18 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002442/0.4476, allocations: 20.12 kB / 487.6 MB, free: 11.16 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001457/0.4491, allocations: 219.8 kB / 487.8 MB, free: 10.95 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002902/0.4494, allocations: 100.8 kB / 487.9 MB, free: 10.85 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001217/0.4495, allocations: 35.97 kB / 487.9 MB, free: 10.81 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0004346/0.4499, allocations: 346.8 kB / 488.3 MB, free: 10.48 MB / 362.7 MB Notification: Performance of sort global known variables: time 4.6e-07/0.4499, allocations: 0 / 488.3 MB, free: 10.48 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0008323/0.4508, allocations: 256 kB / 488.5 MB, free: 10.23 MB / 362.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) * 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 (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.000283/0.4511, allocations: 138.9 kB / 488.7 MB, free: 10.08 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.006795/0.4579, allocations: 2.326 MB / 491 MB, free: 7.727 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 4.628e-06/0.4579, allocations: 4.062 kB / 491 MB, free: 7.723 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003451/0.4614, allocations: 1.159 MB / 492.1 MB, free: 6.562 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008059/0.4622, allocations: 122.1 kB / 492.3 MB, free: 6.445 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004169/0.4664, allocations: 2.135 MB / 494.4 MB, free: 4.289 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005361/0.467, allocations: 0.9467 MB / 495.3 MB, free: 3.312 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000174/0.4672, allocations: 35.44 kB / 495.4 MB, free: 3.277 MB / 362.7 MB Notification: Performance of SimCode: time 6.42e-07/0.4672, allocations: 4 kB / 495.4 MB, free: 3.273 MB / 362.7 MB Notification: Performance of Templates: time 0.02263/0.4898, allocations: 17.3 MB / 0.5007 GB, free: 1.996 MB / 378.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate.makefile (rm -f Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate.pipe >> ../files/Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate.sim & ./Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/HeatingNPN_NORGate/HeatingNPN_NORGate.csv","../files/Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches