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.001057/0.001057, allocations: 173.7 kB / 16.72 MB, free: 5.086 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.515/1.515, allocations: 205.4 MB / 222.9 MB, free: 9.027 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.000744/0.0007442, allocations: 93.22 kB / 271.2 MB, free: 8.25 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003916/0.0003916, allocations: 16 kB / 327.5 MB, free: 15.89 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2813/0.2817, allocations: 47.57 MB / 375.1 MB, free: 45.44 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate): time 0.003693/0.2854, allocations: 4.084 MB / 379.2 MB, free: 42.21 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.002458/0.2879, allocations: 1.231 MB / 380.4 MB, free: 41.18 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003341/0.2883, allocations: 9.812 kB / 380.4 MB, free: 41.18 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002063/0.2885, allocations: 79.05 kB / 380.5 MB, free: 41.11 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003663/0.2889, allocations: 216.8 kB / 380.7 MB, free: 40.92 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005142/0.2894, allocations: 218.3 kB / 380.9 MB, free: 40.74 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0008301/0.2902, allocations: 0.9455 MB / 381.9 MB, free: 40.16 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003508/0.2906, allocations: 220.8 kB / 382.1 MB, free: 40.03 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000427/0.291, allocations: 344.5 kB / 382.4 MB, free: 39.85 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004177/0.2915, allocations: 399.1 kB / 382.8 MB, free: 39.59 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001215/0.2916, allocations: 45.03 kB / 382.8 MB, free: 39.59 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002303/0.2918, allocations: 68.03 kB / 382.9 MB, free: 39.57 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001366/0.292, allocations: 141.5 kB / 383 MB, free: 39.46 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003829/0.2924, allocations: 401 kB / 383.4 MB, free: 39.18 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005988/0.293, allocations: 0.72 MB / 384.2 MB, free: 38.64 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.092e-06/0.293, allocations: 0 / 384.2 MB, free: 38.64 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.613e-06/0.293, allocations: 4 kB / 384.2 MB, free: 38.63 MB / 298.7 MB Notification: Performance of Transformations before backend: time 1.144e-05/0.293, allocations: 1.188 kB / 384.2 MB, free: 38.63 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.002071/0.2951, allocations: 1.102 MB / 385.3 MB, free: 37.78 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.584e-05/0.2952, allocations: 9.406 kB / 385.3 MB, free: 37.78 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001699/0.2953, allocations: 92.53 kB / 385.4 MB, free: 37.73 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000524/0.2959, allocations: 464 kB / 385.8 MB, free: 37.32 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.491e-05/0.2959, allocations: 46.53 kB / 385.9 MB, free: 37.3 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001011/0.296, allocations: 65.17 kB / 385.9 MB, free: 37.27 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001308/0.2973, allocations: 0.6628 MB / 386.6 MB, free: 36.89 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.041e-05/0.2974, allocations: 0 / 386.6 MB, free: 36.89 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.325e-05/0.2974, allocations: 26.41 kB / 386.6 MB, free: 36.88 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.241e-05/0.2975, allocations: 13.84 kB / 386.6 MB, free: 36.88 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00158/0.2991, allocations: 0.7289 MB / 387.4 MB, free: 36.3 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.003266/0.3023, allocations: 2.386 MB / 389.7 MB, free: 33.76 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001274/0.3036, allocations: 0.6374 MB / 390.4 MB, free: 33.11 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006465/0.3043, allocations: 358.6 kB / 390.7 MB, free: 32.76 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.309e-05/0.3043, allocations: 8.422 kB / 390.7 MB, free: 32.75 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008583/0.3052, allocations: 461.4 kB / 391.2 MB, free: 32.28 MB / 298.7 MB Notification: Performance of pre-optimization done (n=54): time 3.096e-06/0.3052, allocations: 3.938 kB / 391.2 MB, free: 32.27 MB / 298.7 MB Notification: Performance of matching and sorting (n=94): time 0.06273/0.368, allocations: 16.72 MB / 407.9 MB, free: 15.45 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.302e-05/0.3681, allocations: 141.5 kB / 408.1 MB, free: 15.28 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005801/0.3687, allocations: 498.8 kB / 408.5 MB, free: 14.79 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001809/0.3689, allocations: 41.7 kB / 408.6 MB, free: 14.74 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001985/0.3691, allocations: 364 kB / 408.9 MB, free: 14.38 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002222/0.3693, allocations: 315.4 kB / 409.2 MB, free: 14.07 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.025e-05/0.3694, allocations: 20 kB / 409.3 MB, free: 14.05 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001039/0.3695, allocations: 378.8 kB / 409.6 MB, free: 13.67 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00184/0.3714, allocations: 0.7944 MB / 410.4 MB, free: 12.88 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001847/0.3732, allocations: 1.002 MB / 411.4 MB, free: 11.8 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003503/0.3767, allocations: 1.811 MB / 413.2 MB, free: 9.902 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.37e-06/0.3768, allocations: 7.938 kB / 413.2 MB, free: 9.895 MB / 298.7 MB Notification: Performance of matching and sorting (n=124) (initialization): time 0.02955/0.4063, allocations: 5.616 MB / 418.9 MB, free: 4.25 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.883e-05/0.4064, allocations: 67.39 kB / 418.9 MB, free: 4.172 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.727e-05/0.4065, allocations: 4 kB / 418.9 MB, free: 4.168 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.04717/0.4537, allocations: 7.324 MB / 426.3 MB, free: 12.83 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001044/0.4548, allocations: 167.8 kB / 426.4 MB, free: 12.66 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009957/0.4648, allocations: 3.223 MB / 429.6 MB, free: 9.387 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001786/0.4666, allocations: 223.8 kB / 429.9 MB, free: 9.168 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001578/0.4668, allocations: 47.97 kB / 429.9 MB, free: 9.121 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.0004602/0.4673, allocations: 209.7 kB / 430.1 MB, free: 8.906 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000179/0.4674, allocations: 79.06 kB / 430.2 MB, free: 8.828 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02185/0.4893, allocations: 5.47 MB / 435.7 MB, free: 3.328 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.457e-05/0.4894, allocations: 8 kB / 435.7 MB, free: 3.32 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.317e-05/0.4894, allocations: 4 kB / 435.7 MB, free: 3.316 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.659e-05/0.4894, allocations: 3.984 kB / 435.7 MB, free: 3.312 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001962/0.4914, allocations: 1.095 MB / 436.8 MB, free: 2.168 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.057e-06/0.4914, allocations: 0 / 436.8 MB, free: 2.168 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005446/0.492, allocations: 131.9 kB / 436.9 MB, free: 2.039 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.03374/0.5257, allocations: 7.277 MB / 444.2 MB, free: 10.74 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002821/0.5261, allocations: 27.98 kB / 444.2 MB, free: 10.71 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005947/0.532, allocations: 3.106 MB / 447.3 MB, free: 7.555 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.438e-06/0.5321, allocations: 0 / 447.3 MB, free: 7.555 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02481/0.5569, allocations: 6.409 MB / 453.7 MB, free: 1.109 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000365/0.5573, allocations: 144.2 kB / 453.9 MB, free: 0.9492 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003726/0.5577, allocations: 19.98 kB / 453.9 MB, free: 0.9297 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001578/0.5593, allocations: 219.8 kB / 454.1 MB, free: 0.7148 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003228/0.5596, allocations: 100.8 kB / 454.2 MB, free: 0.6172 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000125/0.5598, allocations: 39.97 kB / 454.2 MB, free: 0.5781 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0004919/0.5603, allocations: 330.9 kB / 454.6 MB, free: 264 kB / 330.7 MB Notification: Performance of sort global known variables: time 3.51e-07/0.5603, allocations: 0 / 454.6 MB, free: 264 kB / 330.7 MB Notification: Performance of remove unused functions: time 0.0009501/0.5613, allocations: 256 kB / 454.8 MB, free: 8 kB / 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.0003534/0.5616, allocations: 133.5 kB / 454.9 MB, free: 15.87 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.006682/0.5683, allocations: 2.317 MB / 457.3 MB, free: 13.53 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 5.039e-06/0.5684, allocations: 1.125 kB / 457.3 MB, free: 13.53 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003455/0.5718, allocations: 1.152 MB / 458.4 MB, free: 12.38 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001012/0.5729, allocations: 122.2 kB / 458.5 MB, free: 12.26 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004333/0.5772, allocations: 2.079 MB / 460.6 MB, free: 10.16 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005383/0.5778, allocations: 0.9427 MB / 461.5 MB, free: 9.188 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001992/0.578, allocations: 35.44 kB / 461.6 MB, free: 9.156 MB / 346.7 MB Notification: Performance of SimCode: time 8.62e-07/0.578, allocations: 0 / 461.6 MB, free: 9.156 MB / 346.7 MB Notification: Performance of Templates: time 0.02484/0.6028, allocations: 16.76 MB / 478.3 MB, free: 8.391 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/jenkins/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