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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.002642/0.002642, allocations: 99.53 kB / 21.73 MB, free: 2.688 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.002979/0.002979, allocations: 170.6 kB / 25.03 MB, free: 8.934 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.378/1.378, allocations: 158.6 MB / 186.8 MB, free: 2.898 MB / 170.7 MB " [Timeout remaining time 178] 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.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5042,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=5042,variableFilter="time|HeatCapacitor1.T",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 4.479e-06/4.479e-06, allocations: 4 kB / 250.4 MB, free: 7.82 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.985e-05/3.433e-05, allocations: 2.312 kB / 250.4 MB, free: 7.816 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate): time 0.00655/0.006584, allocations: 4.577 MB / 255 MB, free: 3.211 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.002873/0.009457, allocations: 1.249 MB / 256.2 MB, free: 1.953 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004138/0.009871, allocations: 15.94 kB / 256.2 MB, free: 1.938 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003218/0.01019, allocations: 110.8 kB / 256.3 MB, free: 1.824 MB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0005636/0.01076, allocations: 265.5 kB / 256.6 MB, free: 1.562 MB / 234.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007607/0.01152, allocations: 307.4 kB / 256.9 MB, free: 1.262 MB / 234.7 MB Notification: Performance of NFFlatten.flatten: time 0.00131/0.01283, allocations: 1.087 MB / 258 MB, free: 172 kB / 234.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003901/0.01322, allocations: 182.9 kB / 258.2 MB, free: 15.97 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009306/0.01415, allocations: 0.5925 MB / 258.7 MB, free: 15.38 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005627/0.01471, allocations: 355 kB / 259.1 MB, free: 15.03 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001593/0.01487, allocations: 88 kB / 259.2 MB, free: 14.95 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002415/0.01511, allocations: 115.9 kB / 259.3 MB, free: 14.83 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002112/0.01532, allocations: 203.2 kB / 259.5 MB, free: 14.63 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003951/0.01572, allocations: 307.3 kB / 259.8 MB, free: 14.33 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001345/0.01706, allocations: 1.055 MB / 260.8 MB, free: 13.27 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.797e-06/0.01707, allocations: 0 / 260.8 MB, free: 13.27 MB / 250.7 MB Notification: Performance of FrontEnd: time 1.423e-06/0.01707, allocations: 3.938 kB / 260.9 MB, free: 13.27 MB / 250.7 MB Notification: Performance of Transformations before backend: time 1.41e-05/0.01708, allocations: 0 / 260.9 MB, free: 13.27 MB / 250.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.002587/0.01967, allocations: 1.266 MB / 262.1 MB, free: 11.95 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.246e-05/0.01972, allocations: 11.98 kB / 262.1 MB, free: 11.94 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002828/0.02, allocations: 144.4 kB / 262.3 MB, free: 11.8 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007322/0.02074, allocations: 422.1 kB / 262.7 MB, free: 11.36 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.293e-05/0.0208, allocations: 45.69 kB / 262.7 MB, free: 11.32 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001174/0.02092, allocations: 60.38 kB / 262.8 MB, free: 11.26 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001366/0.02228, allocations: 0.7181 MB / 263.5 MB, free: 10.5 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.45e-05/0.02231, allocations: 192 / 263.5 MB, free: 10.5 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.736e-05/0.02238, allocations: 28.38 kB / 263.5 MB, free: 10.48 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.38e-05/0.0224, allocations: 15.94 kB / 263.5 MB, free: 10.46 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001427/0.02383, allocations: 0.5985 MB / 264.1 MB, free: 9.859 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003935/0.02776, allocations: 1.963 MB / 266.1 MB, free: 7.82 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001216/0.02898, allocations: 0.5093 MB / 266.6 MB, free: 7.301 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006012/0.02958, allocations: 281 kB / 266.9 MB, free: 7.023 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.808e-05/0.02964, allocations: 8.5 kB / 266.9 MB, free: 7.016 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009746/0.03061, allocations: 0.539 MB / 267.4 MB, free: 6.41 MB / 250.7 MB Notification: Performance of pre-optimization done (n=54): time 1.963e-06/0.03061, allocations: 0 / 267.4 MB, free: 6.41 MB / 250.7 MB Notification: Performance of matching and sorting (n=94): time 0.05839/0.08901, allocations: 11.82 MB / 279.3 MB, free: 10.54 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001515/0.08916, allocations: 149.5 kB / 279.4 MB, free: 10.36 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009251/0.09008, allocations: 0.6196 MB / 280 MB, free: 9.723 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 0.00019/0.09027, allocations: 49.7 kB / 280.1 MB, free: 9.668 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004334/0.09071, allocations: 435.5 kB / 280.5 MB, free: 9.234 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004011/0.09111, allocations: 341.2 kB / 280.8 MB, free: 8.898 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004465/0.09155, allocations: 212.2 kB / 281 MB, free: 8.684 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0003997/0.09195, allocations: 0.5938 MB / 281.6 MB, free: 8.078 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001729/0.09368, allocations: 0.6807 MB / 282.3 MB, free: 7.383 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002045/0.09573, allocations: 1.065 MB / 283.4 MB, free: 6.18 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003646/0.09937, allocations: 1.617 MB / 285 MB, free: 4.457 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.869e-06/0.09938, allocations: 4 kB / 285 MB, free: 4.453 MB / 266.7 MB Notification: Performance of matching and sorting (n=124) (initialization): time 0.02088/0.1203, allocations: 4.432 MB / 289.4 MB, free: 15.97 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.515e-05/0.1203, allocations: 63.39 kB / 289.5 MB, free: 15.9 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.801e-05/0.1204, allocations: 12.12 kB / 289.5 MB, free: 15.89 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.03336/0.1537, allocations: 5.652 MB / 295.2 MB, free: 10.22 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005645/0.1543, allocations: 115.8 kB / 295.3 MB, free: 10.11 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007342/0.1616, allocations: 3.535 MB / 298.8 MB, free: 6.504 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001401/0.163, allocations: 115.9 kB / 298.9 MB, free: 6.391 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001275/0.1632, allocations: 43.98 kB / 299 MB, free: 6.348 MB / 282.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 (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.0005847/0.1637, allocations: 272.4 kB / 299.2 MB, free: 6.07 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002577/0.164, allocations: 111.5 kB / 299.3 MB, free: 5.961 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01936/0.1834, allocations: 4.071 MB / 303.4 MB, free: 1.867 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.627e-05/0.1834, allocations: 15.97 kB / 303.4 MB, free: 1.852 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.386e-06/0.1834, allocations: 4 kB / 303.4 MB, free: 1.848 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.134e-05/0.1834, allocations: 3.984 kB / 303.4 MB, free: 1.844 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00155/0.185, allocations: 0.8353 MB / 304.3 MB, free: 0.9727 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.18e-06/0.185, allocations: 0 / 304.3 MB, free: 0.9727 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000385/0.1854, allocations: 67.88 kB / 304.3 MB, free: 0.9062 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.03422/0.2196, allocations: 5.59 MB / 309.9 MB, free: 11.3 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002574/0.2198, allocations: 31.97 kB / 309.9 MB, free: 11.27 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006511/0.2263, allocations: 3.458 MB / 313.4 MB, free: 7.746 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.412e-06/0.2264, allocations: 4 kB / 313.4 MB, free: 7.742 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02128/0.2476, allocations: 4.9 MB / 318.3 MB, free: 2.809 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002359/0.2479, allocations: 67.52 kB / 318.4 MB, free: 2.742 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001765/0.248, allocations: 20 kB / 318.4 MB, free: 2.723 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001088/0.2491, allocations: 103.9 kB / 318.5 MB, free: 2.621 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003026/0.2494, allocations: 104.8 kB / 318.6 MB, free: 2.52 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001005/0.2495, allocations: 40 kB / 318.6 MB, free: 2.48 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0004809/0.25, allocations: 394.8 kB / 319 MB, free: 2.098 MB / 298.7 MB Notification: Performance of sort global known variables: time 8e-08/0.25, allocations: 3.938 kB / 319 MB, free: 2.094 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0009105/0.2509, allocations: 252 kB / 319.3 MB, free: 1.848 MB / 298.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 (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.0002918/0.2512, allocations: 139.1 kB / 319.4 MB, free: 1.703 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.006087/0.2573, allocations: 2 MB / 321.4 MB, free: 15.66 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 3.848e-06/0.2573, allocations: 0 / 321.4 MB, free: 15.66 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003253/0.2606, allocations: 0.9941 MB / 322.4 MB, free: 14.66 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008883/0.2615, allocations: 158.1 kB / 322.6 MB, free: 14.51 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003918/0.2654, allocations: 1.694 MB / 324.3 MB, free: 12.79 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003646/0.2657, allocations: 344.9 kB / 324.6 MB, free: 12.42 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0002654/0.266, allocations: 53.91 kB / 324.6 MB, free: 12.36 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001604/0.2662, allocations: 40.5 kB / 324.7 MB, free: 12.32 MB / 314.7 MB Notification: Performance of SimCode: time 1.493e-06/0.2662, allocations: 4 kB / 324.7 MB, free: 12.32 MB / 314.7 MB Notification: Performance of Templates: time 0.03229/0.2985, allocations: 18.91 MB / 343.6 MB, free: 9.387 MB / 330.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate.makefile [Timeout 660] (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=240 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_3.2.3_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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 5.926884216954932]