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.001188/0.001188, allocations: 184.1 kB / 16.41 MB, free: 5.574 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.563/1.563, allocations: 205.4 MB / 222.5 MB, free: 9.129 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.0007769/0.0007768, allocations: 91.98 kB / 270.9 MB, free: 8.367 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003116/0.0003116, allocations: 11.98 kB / 327 MB, free: 200 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2822/0.2825, allocations: 47.57 MB / 374.6 MB, free: 45.39 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate): time 0.004246/0.2868, allocations: 4.076 MB / 378.6 MB, free: 42.19 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.002556/0.2894, allocations: 1.226 MB / 379.9 MB, free: 41.17 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004446/0.2899, allocations: 14.28 kB / 379.9 MB, free: 41.16 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002138/0.2901, allocations: 76.09 kB / 379.9 MB, free: 41.1 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0004256/0.2906, allocations: 208.6 kB / 380.1 MB, free: 40.92 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000628/0.2912, allocations: 225.9 kB / 380.4 MB, free: 40.73 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0009157/0.2921, allocations: 0.9368 MB / 381.3 MB, free: 40.16 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000326/0.2925, allocations: 194.6 kB / 381.5 MB, free: 40.04 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004373/0.2929, allocations: 348.5 kB / 381.8 MB, free: 39.85 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004843/0.2934, allocations: 410.8 kB / 382.2 MB, free: 39.58 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 9.766e-05/0.2935, allocations: 45.06 kB / 382.3 MB, free: 39.58 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000206/0.2937, allocations: 64.77 kB / 382.3 MB, free: 39.57 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001042/0.2938, allocations: 141.6 kB / 382.5 MB, free: 39.45 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001576/0.294, allocations: 166.6 kB / 382.6 MB, free: 39.36 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005628/0.2946, allocations: 0.7241 MB / 383.4 MB, free: 38.8 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.22e-06/0.2946, allocations: 0 / 383.4 MB, free: 38.8 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.613e-06/0.2946, allocations: 0 / 383.4 MB, free: 38.8 MB / 298.7 MB Notification: Performance of Transformations before backend: time 1.102e-05/0.2946, allocations: 0 / 383.4 MB, free: 38.8 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.002189/0.2968, allocations: 1.107 MB / 384.5 MB, free: 37.96 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.06e-05/0.2969, allocations: 13.02 kB / 384.5 MB, free: 37.95 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001727/0.297, allocations: 91.12 kB / 384.6 MB, free: 37.91 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005715/0.2976, allocations: 439.4 kB / 385 MB, free: 37.52 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.076e-05/0.2977, allocations: 50.17 kB / 385.1 MB, free: 37.49 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001047/0.2978, allocations: 73 kB / 385.1 MB, free: 37.46 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001451/0.2993, allocations: 0.6539 MB / 385.8 MB, free: 37.09 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.002e-05/0.2993, allocations: 1 kB / 385.8 MB, free: 37.09 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.492e-05/0.2994, allocations: 29.66 kB / 385.8 MB, free: 37.07 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.952e-05/0.2994, allocations: 19 kB / 385.8 MB, free: 37.06 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001679/0.3011, allocations: 0.7281 MB / 386.6 MB, free: 36.7 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.003271/0.3044, allocations: 2.376 MB / 388.9 MB, free: 34.16 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001359/0.3057, allocations: 0.6373 MB / 389.6 MB, free: 33.52 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000672/0.3064, allocations: 362.6 kB / 389.9 MB, free: 33.16 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.634e-05/0.3065, allocations: 4.438 kB / 389.9 MB, free: 33.16 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008769/0.3074, allocations: 457.4 kB / 390.4 MB, free: 32.68 MB / 298.7 MB Notification: Performance of pre-optimization done (n=54): time 3.487e-06/0.3074, allocations: 3.938 kB / 390.4 MB, free: 32.68 MB / 298.7 MB Notification: Performance of matching and sorting (n=94): time 0.06991/0.3773, allocations: 16.74 MB / 407.1 MB, free: 15.84 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.58e-05/0.3774, allocations: 145.5 kB / 407.3 MB, free: 15.67 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005328/0.378, allocations: 486.9 kB / 407.7 MB, free: 15.19 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002046/0.3782, allocations: 41.7 kB / 407.8 MB, free: 15.14 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000199/0.3784, allocations: 371.9 kB / 408.1 MB, free: 14.77 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002064/0.3786, allocations: 315.5 kB / 408.4 MB, free: 14.46 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.045e-05/0.3787, allocations: 20 kB / 408.5 MB, free: 14.44 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 8.692e-05/0.3788, allocations: 382.8 kB / 408.8 MB, free: 14.06 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001896/0.3807, allocations: 0.7905 MB / 409.6 MB, free: 13.27 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001953/0.3826, allocations: 0.9976 MB / 410.6 MB, free: 12.19 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001959/0.3846, allocations: 0.873 MB / 411.5 MB, free: 11.31 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.813e-06/0.3846, allocations: 4 kB / 411.5 MB, free: 11.3 MB / 298.7 MB Notification: Performance of matching and sorting (n=124) (initialization): time 0.02307/0.4077, allocations: 5.613 MB / 417.1 MB, free: 5.664 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.855e-05/0.4078, allocations: 67.39 kB / 417.2 MB, free: 5.586 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.502e-05/0.4079, allocations: 12.12 kB / 417.2 MB, free: 5.574 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.03531/0.4432, allocations: 7.316 MB / 424.5 MB, free: 14.24 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007529/0.444, allocations: 171.8 kB / 424.7 MB, free: 14.07 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007077/0.4511, allocations: 3.216 MB / 427.9 MB, free: 10.8 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001935/0.453, allocations: 231.8 kB / 428.1 MB, free: 10.58 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001601/0.4532, allocations: 43.97 kB / 428.2 MB, free: 10.54 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.0004487/0.4537, allocations: 213.7 kB / 428.4 MB, free: 10.32 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001517/0.4538, allocations: 75.06 kB / 428.4 MB, free: 10.24 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02408/0.4779, allocations: 5.466 MB / 433.9 MB, free: 4.746 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.088e-05/0.478, allocations: 8 kB / 433.9 MB, free: 4.738 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.978e-06/0.478, allocations: 3.953 kB / 433.9 MB, free: 4.734 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.878e-05/0.4781, allocations: 11.98 kB / 433.9 MB, free: 4.723 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001604/0.4797, allocations: 1.089 MB / 435 MB, free: 3.586 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.713e-06/0.4797, allocations: 4 kB / 435 MB, free: 3.582 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005856/0.4803, allocations: 123.9 kB / 435.2 MB, free: 3.461 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.03757/0.5179, allocations: 7.289 MB / 442.4 MB, free: 12.15 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000295/0.5182, allocations: 23.92 kB / 442.5 MB, free: 12.13 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006182/0.5244, allocations: 3.102 MB / 445.6 MB, free: 8.973 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.479e-06/0.5244, allocations: 4 kB / 445.6 MB, free: 8.969 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02644/0.5509, allocations: 6.413 MB / 452 MB, free: 2.52 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002671/0.5512, allocations: 144.2 kB / 452.1 MB, free: 2.359 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001635/0.5514, allocations: 16 kB / 452.1 MB, free: 2.344 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00145/0.5528, allocations: 219.8 kB / 452.4 MB, free: 2.129 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002266/0.5531, allocations: 96.84 kB / 452.4 MB, free: 2.035 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.277e-05/0.5531, allocations: 35.97 kB / 452.5 MB, free: 2 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0003899/0.5535, allocations: 330.9 kB / 452.8 MB, free: 1.68 MB / 330.7 MB Notification: Performance of sort global known variables: time 1.81e-07/0.5536, allocations: 0 / 452.8 MB, free: 1.68 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.000734/0.5543, allocations: 256 kB / 453.1 MB, free: 1.43 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.0002802/0.5546, allocations: 135.2 kB / 453.2 MB, free: 1.289 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.007028/0.5616, allocations: 2.314 MB / 455.5 MB, free: 14.95 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 5.871e-06/0.5617, allocations: 0 / 455.5 MB, free: 14.95 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003543/0.5652, allocations: 1.152 MB / 456.7 MB, free: 13.8 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008433/0.5661, allocations: 126.2 kB / 456.8 MB, free: 13.68 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003921/0.57, allocations: 2.081 MB / 458.9 MB, free: 11.57 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004152/0.5705, allocations: 0.9427 MB / 459.8 MB, free: 10.6 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001632/0.5706, allocations: 35.44 kB / 459.8 MB, free: 10.57 MB / 346.7 MB Notification: Performance of SimCode: time 7.41e-07/0.5707, allocations: 0 / 459.8 MB, free: 10.57 MB / 346.7 MB Notification: Performance of Templates: time 0.01937/0.59, allocations: 16.81 MB / 476.6 MB, free: 9.762 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