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.002784/0.00279, allocations: 183.6 kB / 16.4 MB, free: 5.75 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 3.623/3.623, allocations: 205.4 MB / 222.5 MB, free: 9.109 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.001801/0.001801, allocations: 94.86 kB / 270.9 MB, free: 8.348 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006279/0.000628, allocations: 8 kB / 327 MB, free: 196 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6149/0.6156, allocations: 47.57 MB / 374.5 MB, free: 45.38 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate): time 0.008158/0.6238, allocations: 3.778 MB / 378.3 MB, free: 42.46 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.004698/0.6286, allocations: 1.274 MB / 379.6 MB, free: 41.41 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00103/0.6297, allocations: 9.25 kB / 379.6 MB, free: 41.41 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0004017/0.6302, allocations: 83.3 kB / 379.7 MB, free: 41.34 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001648/0.6318, allocations: 272.4 kB / 379.9 MB, free: 41.11 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.00145/0.6333, allocations: 214.1 kB / 380.1 MB, free: 40.93 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.00258/0.636, allocations: 0.6704 MB / 380.8 MB, free: 40.5 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007921/0.6368, allocations: 199.9 kB / 381 MB, free: 40.37 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001224/0.6381, allocations: 344 kB / 381.4 MB, free: 40.18 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00122/0.6393, allocations: 403.7 kB / 381.7 MB, free: 39.91 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002584/0.6396, allocations: 44.88 kB / 381.8 MB, free: 39.91 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004588/0.6401, allocations: 62.98 kB / 381.9 MB, free: 39.91 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002296/0.6403, allocations: 145.5 kB / 382 MB, free: 39.79 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003617/0.6407, allocations: 162.4 kB / 382.2 MB, free: 39.69 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001529/0.6423, allocations: 0.7169 MB / 382.9 MB, free: 39.14 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.777e-06/0.6423, allocations: 4 kB / 382.9 MB, free: 39.14 MB / 298.7 MB Notification: Performance of FrontEnd: time 3.045e-06/0.6423, allocations: 0 / 382.9 MB, free: 39.14 MB / 298.7 MB Notification: Performance of Transformations before backend: time 3.123e-05/0.6424, allocations: 1.062 kB / 382.9 MB, free: 39.14 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: 152 * Number of variables: 152 Notification: Performance of Generate backend data structure: time 0.005284/0.6477, allocations: 1.113 MB / 384 MB, free: 38.29 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 7.087e-05/0.6478, allocations: 9.219 kB / 384 MB, free: 38.29 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005353/0.6483, allocations: 90.89 kB / 384.1 MB, free: 38.24 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001462/0.6498, allocations: 439.8 kB / 384.5 MB, free: 37.85 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001023/0.6499, allocations: 50.06 kB / 384.6 MB, free: 37.82 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002467/0.6502, allocations: 64.78 kB / 384.6 MB, free: 37.8 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003606/0.6538, allocations: 0.6572 MB / 385.3 MB, free: 37.42 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.749e-05/0.6539, allocations: 0 / 385.3 MB, free: 37.42 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001469/0.6541, allocations: 26.34 kB / 385.3 MB, free: 37.4 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.245e-05/0.6542, allocations: 14.22 kB / 385.3 MB, free: 37.4 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004492/0.6587, allocations: 0.7308 MB / 386.1 MB, free: 37.07 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.009282/0.668, allocations: 2.382 MB / 388.4 MB, free: 34.62 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003749/0.6718, allocations: 0.6422 MB / 389.1 MB, free: 33.97 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001349/0.672, allocations: 8.375 kB / 389.1 MB, free: 33.96 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002402/0.6745, allocations: 449.5 kB / 389.5 MB, free: 33.5 MB / 298.7 MB Notification: Performance of pre-optimization done (n=54): time 5.03e-06/0.6745, allocations: 0 / 389.5 MB, free: 33.5 MB / 298.7 MB Notification: Performance of matching and sorting (n=94): time 0.1814/0.856, allocations: 16.71 MB / 406.2 MB, free: 16.69 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001031/0.8562, allocations: 149.4 kB / 406.4 MB, free: 16.52 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001208/0.8574, allocations: 486.9 kB / 406.9 MB, free: 16.04 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003825/0.8578, allocations: 45.7 kB / 406.9 MB, free: 15.98 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003692/0.8582, allocations: 398.4 kB / 407.3 MB, free: 15.59 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005655/0.8588, allocations: 315.5 kB / 407.6 MB, free: 15.28 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001953/0.859, allocations: 20 kB / 407.6 MB, free: 15.26 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001272/0.8591, allocations: 350.7 kB / 408 MB, free: 14.91 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005512/0.8647, allocations: 0.7944 MB / 408.8 MB, free: 14.11 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005821/0.8706, allocations: 0.9929 MB / 409.8 MB, free: 13.04 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005543/0.8762, allocations: 0.8691 MB / 410.6 MB, free: 12.16 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.483e-05/0.8763, allocations: 4 kB / 410.6 MB, free: 12.16 MB / 298.7 MB Notification: Performance of matching and sorting (n=124) (initialization): time 0.08679/0.9631, allocations: 5.586 MB / 416.2 MB, free: 6.543 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.456e-05/0.9632, allocations: 63.41 kB / 416.3 MB, free: 6.469 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.184e-05/0.9633, allocations: 4 kB / 416.3 MB, free: 6.465 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.09259/1.056, allocations: 7.321 MB / 423.6 MB, free: 15.13 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001858/1.058, allocations: 175.7 kB / 423.8 MB, free: 14.96 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0177/1.076, allocations: 3.212 MB / 427 MB, free: 11.69 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004498/1.08, allocations: 227.7 kB / 427.2 MB, free: 11.47 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000468/1.081, allocations: 51.91 kB / 427.3 MB, free: 11.42 MB / 314.7 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 ($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 (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.001008/1.082, allocations: 213.7 kB / 427.5 MB, free: 11.2 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004313/1.082, allocations: 75.16 kB / 427.5 MB, free: 11.12 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0623/1.144, allocations: 5.462 MB / 433 MB, free: 5.633 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.494e-05/1.145, allocations: 8 kB / 433 MB, free: 5.625 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.681e-05/1.145, allocations: 3.953 kB / 433 MB, free: 5.621 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.638e-05/1.145, allocations: 3.984 kB / 433 MB, free: 5.617 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003367/1.148, allocations: 1.085 MB / 434.1 MB, free: 4.484 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.358e-05/1.148, allocations: 4 kB / 434.1 MB, free: 4.48 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001497/1.15, allocations: 120.1 kB / 434.2 MB, free: 4.363 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.09455/1.244, allocations: 7.289 MB / 441.5 MB, free: 13.05 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003876/1.245, allocations: 31.97 kB / 441.5 MB, free: 13.02 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01499/1.26, allocations: 3.094 MB / 444.6 MB, free: 9.875 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.08e-06/1.26, allocations: 0 / 444.6 MB, free: 9.875 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.06476/1.325, allocations: 6.421 MB / 451.1 MB, free: 3.422 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004772/1.325, allocations: 144.2 kB / 451.2 MB, free: 3.262 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005347/1.326, allocations: 16 kB / 451.2 MB, free: 3.246 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003858/1.33, allocations: 215.8 kB / 451.4 MB, free: 3.035 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007188/1.33, allocations: 100.8 kB / 451.5 MB, free: 2.938 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002828/1.331, allocations: 35.97 kB / 451.6 MB, free: 2.902 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0009034/1.332, allocations: 330.8 kB / 451.9 MB, free: 2.582 MB / 330.7 MB Notification: Performance of sort global known variables: time 6.41e-07/1.332, allocations: 0 / 451.9 MB, free: 2.582 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.002186/1.334, allocations: 252 kB / 452.1 MB, free: 2.336 MB / 330.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.0005273/1.334, allocations: 135.2 kB / 452.3 MB, free: 2.195 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.018/1.352, allocations: 2.321 MB / 454.6 MB, free: 15.85 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 1.068e-05/1.352, allocations: 0 / 454.6 MB, free: 15.85 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.009445/1.362, allocations: 1.16 MB / 455.7 MB, free: 14.7 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001562/1.364, allocations: 107.1 kB / 455.8 MB, free: 14.59 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009806/1.373, allocations: 2.081 MB / 457.9 MB, free: 12.48 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001081/1.375, allocations: 0.9622 MB / 458.9 MB, free: 11.49 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000469/1.375, allocations: 31.44 kB / 458.9 MB, free: 11.46 MB / 346.7 MB Notification: Performance of SimCode: time 1.724e-06/1.375, allocations: 0 / 458.9 MB, free: 11.46 MB / 346.7 MB Notification: Performance of Templates: time 0.05094/1.426, allocations: 16.07 MB / 475 MB, free: 11.39 MB / 362.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