Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate.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 3.2.3+maint.om/package.mo", uses=false) 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 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_OrGate,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|HeatCapacitor1.T",fileNamePrefix="Modelica_3.2.3_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_Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001181/0.001181, allocations: 104.4 kB / 18.39 MB, free: 4.703 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.001486/0.001486, allocations: 192.1 kB / 19.33 MB, free: 3.781 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.382/1.382, allocations: 205.1 MB / 225.2 MB, free: 12.23 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001361/0.001361, allocations: 52.2 kB / 329.2 MB, free: 3.301 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09173/0.0931, allocations: 46.62 MB / 375.8 MB, free: 4.57 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate): time 0.1879/0.281, allocations: 4.703 MB / 380.5 MB, free: 9.73 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002749/0.2838, allocations: 1.278 MB / 381.8 MB, free: 9.703 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005421/0.2844, allocations: 11.91 kB / 381.8 MB, free: 9.703 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003238/0.2847, allocations: 112.1 kB / 381.9 MB, free: 9.652 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005589/0.2853, allocations: 246.9 kB / 382.2 MB, free: 9.527 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000876/0.2862, allocations: 301.6 kB / 382.5 MB, free: 9.516 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.001177/0.2874, allocations: 1.06 MB / 383.5 MB, free: 9.301 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000461/0.2879, allocations: 259.6 kB / 383.8 MB, free: 9.246 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007671/0.2886, allocations: 408.4 kB / 384.2 MB, free: 9.113 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005989/0.2892, allocations: 456.8 kB / 384.6 MB, free: 8.898 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001374/0.2894, allocations: 85.16 kB / 384.7 MB, free: 8.898 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002578/0.2896, allocations: 108.4 kB / 384.8 MB, free: 8.895 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001498/0.2898, allocations: 188.1 kB / 385 MB, free: 8.77 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003789/0.2902, allocations: 434.8 kB / 385.4 MB, free: 8.512 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001183/0.2914, allocations: 0.972 MB / 386.4 MB, free: 8.152 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.45e-06/0.2914, allocations: 4 kB / 386.4 MB, free: 8.148 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.345e-06/0.2914, allocations: 0 / 386.4 MB, free: 8.148 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.55e-05/0.2914, allocations: 1.906 kB / 386.4 MB, free: 8.148 MB / 318.1 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.002463/0.2939, allocations: 1.209 MB / 387.6 MB, free: 7.324 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.121e-05/0.294, allocations: 9.859 kB / 387.6 MB, free: 7.324 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001812/0.2941, allocations: 88.88 kB / 387.7 MB, free: 7.281 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007791/0.2949, allocations: 475.7 kB / 388.2 MB, free: 6.918 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.798e-05/0.295, allocations: 47.11 kB / 388.2 MB, free: 6.895 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001109/0.2951, allocations: 60.56 kB / 388.3 MB, free: 6.879 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00144/0.2966, allocations: 0.6375 MB / 388.9 MB, free: 6.637 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.133e-05/0.2966, allocations: 1.375 kB / 388.9 MB, free: 6.637 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.489e-05/0.2967, allocations: 26.44 kB / 388.9 MB, free: 6.617 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.772e-05/0.2967, allocations: 13.47 kB / 389 MB, free: 6.617 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001703/0.2984, allocations: 0.6794 MB / 389.6 MB, free: 6.41 MB / 318.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.003923/0.3023, allocations: 2.304 MB / 391.9 MB, free: 4.984 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001477/0.3038, allocations: 0.5833 MB / 392.5 MB, free: 4.762 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007593/0.3046, allocations: 335.7 kB / 392.9 MB, free: 4.641 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.801e-05/0.3047, allocations: 10.36 kB / 392.9 MB, free: 4.637 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001031/0.3057, allocations: 433.8 kB / 393.3 MB, free: 4.441 MB / 318.1 MB Notification: Performance of pre-optimization done (n=54): time 2.775e-06/0.3057, allocations: 0 / 393.3 MB, free: 4.441 MB / 318.1 MB Notification: Performance of matching and sorting (n=94): time 0.07425/0.38, allocations: 15.41 MB / 408.7 MB, free: 13.68 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001283/0.3802, allocations: 144 kB / 408.8 MB, free: 13.51 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007852/0.381, allocations: 494.8 kB / 409.3 MB, free: 13.02 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002843/0.3813, allocations: 45.7 kB / 409.4 MB, free: 12.96 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002876/0.3816, allocations: 367.9 kB / 409.7 MB, free: 12.6 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003705/0.3819, allocations: 307.9 kB / 410 MB, free: 12.3 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003717/0.3823, allocations: 182.5 kB / 410.2 MB, free: 12.11 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001619/0.3825, allocations: 379.5 kB / 410.6 MB, free: 11.73 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002003/0.3845, allocations: 0.7202 MB / 411.3 MB, free: 11.02 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002157/0.3867, allocations: 0.9304 MB / 412.2 MB, free: 10 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004104/0.3908, allocations: 1.662 MB / 413.9 MB, free: 8.258 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.222e-06/0.3908, allocations: 0 / 413.9 MB, free: 8.258 MB / 334.1 MB Notification: Performance of matching and sorting (n=124) (initialization): time 0.02475/0.4156, allocations: 5.348 MB / 419.2 MB, free: 2.887 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.326e-05/0.4157, allocations: 63.41 kB / 419.3 MB, free: 2.812 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.697e-05/0.4158, allocations: 8 kB / 419.3 MB, free: 2.805 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0358/0.4516, allocations: 6.846 MB / 426.1 MB, free: 11.95 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007988/0.4524, allocations: 135.8 kB / 426.3 MB, free: 11.82 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007479/0.4599, allocations: 3.164 MB / 429.4 MB, free: 8.602 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001923/0.4619, allocations: 183.8 kB / 429.6 MB, free: 8.422 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002395/0.4622, allocations: 47.97 kB / 429.7 MB, free: 8.375 MB / 350.1 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 (V2.signalSource.count,$PRE.V2.signalSource.count,V2.signalSource.T_start,$PRE.V2.signalSource.T_start,V1.signalSource.count,$PRE.V1.signalSource.count,V1.signalSource.T_start,$PRE.V1.signalSource.T_start,$whenCondition1,$whenCondition2) * 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 (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(5,32), (5,32)} Notification: Performance of prepare postOptimizeDAE: time 0.0006177/0.4628, allocations: 218.7 kB / 429.9 MB, free: 8.152 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00026/0.4631, allocations: 85.91 kB / 430 MB, free: 8.07 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02422/0.4873, allocations: 5.102 MB / 435.1 MB, free: 2.961 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.088e-05/0.4874, allocations: 12 kB / 435.1 MB, free: 2.949 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.766e-06/0.4874, allocations: 0 / 435.1 MB, free: 2.949 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.588e-05/0.4874, allocations: 3.984 kB / 435.1 MB, free: 2.945 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001878/0.4893, allocations: 1.097 MB / 436.2 MB, free: 1.812 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.348e-05/0.4893, allocations: 3.938 kB / 436.2 MB, free: 1.809 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000566/0.4899, allocations: 91.83 kB / 436.3 MB, free: 1.719 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.03508/0.525, allocations: 6.801 MB / 443.1 MB, free: 10.91 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003773/0.5255, allocations: 23.98 kB / 443.1 MB, free: 10.89 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006034/0.5315, allocations: 3.032 MB / 446.1 MB, free: 7.801 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.488e-06/0.5316, allocations: 8 kB / 446.1 MB, free: 7.793 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02568/0.5573, allocations: 5.991 MB / 452.1 MB, free: 1.777 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002955/0.5576, allocations: 136.2 kB / 452.3 MB, free: 1.625 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003731/0.558, allocations: 28.06 kB / 452.3 MB, free: 1.598 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001649/0.5597, allocations: 168.7 kB / 452.5 MB, free: 1.434 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003389/0.56, allocations: 100.9 kB / 452.6 MB, free: 1.336 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001321/0.5602, allocations: 31.97 kB / 452.6 MB, free: 1.305 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0004298/0.5606, allocations: 334.9 kB / 452.9 MB, free: 0.9805 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.5606, allocations: 0 / 452.9 MB, free: 0.9805 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0009501/0.5616, allocations: 252 kB / 453.2 MB, free: 0.7344 MB / 366.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 (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(5,32), (5,36)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0003386/0.5619, allocations: 135.2 kB / 453.3 MB, free: 0.5938 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.007056/0.569, allocations: 2.169 MB / 455.5 MB, free: 14.4 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 1.029e-05/0.5691, allocations: 1.125 kB / 455.5 MB, free: 14.4 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003729/0.5728, allocations: 1.096 MB / 456.6 MB, free: 13.31 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001142/0.574, allocations: 133.1 kB / 456.7 MB, free: 13.18 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004481/0.5785, allocations: 1.753 MB / 458.4 MB, free: 11.39 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005233/0.579, allocations: 0.9427 MB / 459.4 MB, free: 10.43 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002281/0.5793, allocations: 35.38 kB / 459.4 MB, free: 10.39 MB / 382.1 MB Notification: Performance of SimCode: time 7.21e-07/0.5793, allocations: 0 / 459.4 MB, free: 10.39 MB / 382.1 MB Notification: Performance of Templates: time 0.02435/0.6037, allocations: 17 MB / 476.4 MB, free: 9.375 MB / 398.1 MB make -j1 -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate.makefile (rm -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate.sim & ./Modelica_3.2.3_Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_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","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches