Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|HeatCapacitor1.T",fileNamePrefix="Modelica_4.0.0_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_4.0.0_Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001492/0.001492, allocations: 91.73 kB / 16.3 MB, free: 6.457 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001262/0.001262, allocations: 185.4 kB / 17.2 MB, free: 6.34 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.585/1.585, allocations: 223.2 MB / 241.1 MB, free: 5.449 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003148/0.0003148, allocations: 7.469 kB / 300.7 MB, free: 6.078 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1359/0.1363, allocations: 50.42 MB / 351.1 MB, free: 11.74 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate): time 0.005342/0.1417, allocations: 3.981 MB / 355.1 MB, free: 7.738 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.003252/0.145, allocations: 1.284 MB / 356.4 MB, free: 6.449 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008295/0.1458, allocations: 15.94 kB / 356.4 MB, free: 6.434 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003875/0.1463, allocations: 83.34 kB / 356.5 MB, free: 6.352 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009699/0.1472, allocations: 283.1 kB / 356.8 MB, free: 6.074 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008369/0.1481, allocations: 219.6 kB / 357 MB, free: 5.859 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.00111/0.1492, allocations: 0.7033 MB / 357.7 MB, free: 5.152 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003488/0.1496, allocations: 199.5 kB / 357.9 MB, free: 4.941 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004258/0.15, allocations: 362.7 kB / 358.2 MB, free: 4.586 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004804/0.1505, allocations: 406.3 kB / 358.6 MB, free: 4.188 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 8.443e-05/0.1506, allocations: 48 kB / 358.7 MB, free: 4.141 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001714/0.1508, allocations: 71.97 kB / 358.7 MB, free: 4.07 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001387/0.1509, allocations: 143.4 kB / 358.9 MB, free: 3.93 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001673/0.1511, allocations: 177.2 kB / 359.1 MB, free: 3.75 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006845/0.1518, allocations: 0.7322 MB / 359.8 MB, free: 3.016 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.398e-06/0.1518, allocations: 0 / 359.8 MB, free: 3.016 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.914e-06/0.1518, allocations: 4 kB / 359.8 MB, free: 3.012 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.006e-05/0.1518, allocations: 0 / 359.8 MB, free: 3.012 MB / 286.1 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.002287/0.1541, allocations: 1.149 MB / 360.9 MB, free: 1.793 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.958e-05/0.1542, allocations: 15.97 kB / 361 MB, free: 1.777 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001543/0.1543, allocations: 94.91 kB / 361.1 MB, free: 1.684 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006174/0.1549, allocations: 458.6 kB / 361.5 MB, free: 1.191 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.678e-05/0.155, allocations: 53.3 kB / 361.6 MB, free: 1.141 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001078/0.1551, allocations: 67.98 kB / 361.6 MB, free: 1.074 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001372/0.1565, allocations: 0.6702 MB / 362.3 MB, free: 408 kB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.245e-05/0.1565, allocations: 0 / 362.3 MB, free: 408 kB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.949e-05/0.1566, allocations: 35.88 kB / 362.3 MB, free: 372 kB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.433e-05/0.1566, allocations: 12 kB / 362.3 MB, free: 360 kB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001684/0.1583, allocations: 0.7585 MB / 363.1 MB, free: 15.59 MB / 302.1 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.003873/0.1622, allocations: 2.418 MB / 365.5 MB, free: 13.02 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001464/0.1637, allocations: 0.648 MB / 366.2 MB, free: 12.37 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.47e-05/0.1637, allocations: 8.438 kB / 366.2 MB, free: 12.36 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009585/0.1647, allocations: 457.3 kB / 366.6 MB, free: 11.89 MB / 302.1 MB Notification: Performance of pre-optimization done (n=54): time 2.354e-06/0.1647, allocations: 0 / 366.6 MB, free: 11.89 MB / 302.1 MB Notification: Performance of matching and sorting (n=94): time 0.06893/0.2336, allocations: 16.71 MB / 383.3 MB, free: 11.09 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001107/0.2338, allocations: 145.5 kB / 383.5 MB, free: 10.91 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006726/0.2345, allocations: 0.5146 MB / 384 MB, free: 10.39 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001853/0.2347, allocations: 53.7 kB / 384 MB, free: 10.33 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002773/0.235, allocations: 379.8 kB / 384.4 MB, free: 9.953 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002821/0.2352, allocations: 315.5 kB / 384.7 MB, free: 9.641 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.41e-05/0.2353, allocations: 20 kB / 384.7 MB, free: 9.621 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001646/0.2355, allocations: 394.7 kB / 385.1 MB, free: 9.227 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002072/0.2376, allocations: 0.7947 MB / 385.9 MB, free: 8.434 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002326/0.2399, allocations: 1.025 MB / 386.9 MB, free: 7.32 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002201/0.2421, allocations: 0.8769 MB / 387.8 MB, free: 6.434 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.282e-06/0.2422, allocations: 4 kB / 387.8 MB, free: 6.43 MB / 318.1 MB Notification: Performance of matching and sorting (n=128) (initialization): time 0.02277/0.2649, allocations: 5.651 MB / 393.5 MB, free: 0.7422 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001199/0.2651, allocations: 71.39 kB / 393.5 MB, free: 0.6602 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.307e-05/0.2651, allocations: 4 kB / 393.5 MB, free: 0.6562 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.03494/0.3001, allocations: 7.317 MB / 400.9 MB, free: 9.324 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007724/0.3009, allocations: 179.7 kB / 401 MB, free: 9.148 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006949/0.3079, allocations: 3.219 MB / 404.3 MB, free: 5.875 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00183/0.3097, allocations: 227.8 kB / 404.5 MB, free: 5.652 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001276/0.3099, allocations: 47.97 kB / 404.5 MB, free: 5.605 MB / 334.1 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.0004735/0.3104, allocations: 221.7 kB / 404.7 MB, free: 5.379 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001587/0.3105, allocations: 79.02 kB / 404.8 MB, free: 5.301 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02288/0.3334, allocations: 5.467 MB / 410.3 MB, free: 15.81 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.004e-05/0.3335, allocations: 12 kB / 410.3 MB, free: 15.8 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.678e-06/0.3335, allocations: 0 / 410.3 MB, free: 15.8 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.425e-05/0.3335, allocations: 3.984 kB / 410.3 MB, free: 15.8 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001561/0.3351, allocations: 1.112 MB / 411.4 MB, free: 14.64 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.61e-06/0.3351, allocations: 3.938 kB / 411.4 MB, free: 14.63 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005671/0.3357, allocations: 123.9 kB / 411.5 MB, free: 14.51 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.03472/0.3704, allocations: 7.289 MB / 418.8 MB, free: 7.207 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002115/0.3707, allocations: 23.94 kB / 418.9 MB, free: 7.184 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005858/0.3766, allocations: 3.08 MB / 421.9 MB, free: 4.047 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.078e-06/0.3766, allocations: 3.938 kB / 421.9 MB, free: 4.043 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2162/0.5928, allocations: 6.411 MB / 428.3 MB, free: 67.95 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002343/0.5931, allocations: 146.5 kB / 428.5 MB, free: 67.86 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001686/0.5933, allocations: 22.86 kB / 428.5 MB, free: 67.86 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001476/0.5948, allocations: 217.7 kB / 428.7 MB, free: 67.86 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003036/0.5951, allocations: 99.17 kB / 428.8 MB, free: 67.86 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.04e-05/0.5952, allocations: 31.03 kB / 428.9 MB, free: 67.86 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0004207/0.5956, allocations: 356.2 kB / 429.2 MB, free: 67.77 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.5956, allocations: 0 / 429.2 MB, free: 67.77 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000769/0.5964, allocations: 260.9 kB / 429.5 MB, free: 67.77 MB / 350.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) * 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.0002602/0.5967, allocations: 131.6 kB / 429.6 MB, free: 67.68 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.007619/0.6043, allocations: 2.337 MB / 431.9 MB, free: 67.54 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 7.424e-06/0.6043, allocations: 5.25 kB / 431.9 MB, free: 67.54 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003955/0.6083, allocations: 1.154 MB / 433.1 MB, free: 67.52 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007677/0.6091, allocations: 109.1 kB / 433.2 MB, free: 67.52 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004779/0.6139, allocations: 2.085 MB / 435.3 MB, free: 66.71 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005311/0.6144, allocations: 0.9675 MB / 436.2 MB, free: 66.01 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0003696/0.6148, allocations: 56.56 kB / 436.3 MB, free: 65.99 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001413/0.6149, allocations: 34.66 kB / 436.3 MB, free: 65.98 MB / 350.1 MB Notification: Performance of SimCode: time 1.543e-06/0.615, allocations: 0 / 436.3 MB, free: 65.98 MB / 350.1 MB Notification: Performance of Templates: time 0.02885/0.6438, allocations: 19.85 MB / 456.2 MB, free: 52.52 MB / 350.1 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate.sim & ./Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_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_4.0.0_Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches