Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0016/0.0016, allocations: 108.8 kB / 21.18 MB, free: 0.7617 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001371/0.001371, allocations: 189.2 kB / 24.48 MB, free: 4.164 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.424/1.424, allocations: 225.6 MB / 253.3 MB, free: 13.03 MB / 206.1 MB " [Timeout remaining time 178] 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.OpAmps.Comparator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|opAmp.out.v|opAmp.out.i",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Comparator") translateModel(Modelica.Electrical.Analog.Examples.OpAmps.Comparator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|opAmp.out.v|opAmp.out.i",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Comparator") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001614/0.001614, allocations: 43.94 kB / 371.7 MB, free: 9.312 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2689/0.2706, allocations: 52.18 MB / 423.9 MB, free: 14.82 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.Comparator): time 0.004854/0.2754, allocations: 2.927 MB / 426.8 MB, free: 11.88 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001525/0.2769, allocations: 0.7206 MB / 427.6 MB, free: 11.16 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001774/0.2771, allocations: 8 kB / 427.6 MB, free: 11.15 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001827/0.2773, allocations: 51.5 kB / 427.6 MB, free: 11.1 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002473/0.2775, allocations: 95.19 kB / 427.7 MB, free: 11 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003473/0.2779, allocations: 115.8 kB / 427.8 MB, free: 10.89 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005335/0.2784, allocations: 386.5 kB / 428.2 MB, free: 10.51 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002327/0.2787, allocations: 100.5 kB / 428.3 MB, free: 10.41 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002127/0.2789, allocations: 155.4 kB / 428.4 MB, free: 10.26 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000252/0.2791, allocations: 171.3 kB / 428.6 MB, free: 10.09 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 6.016e-05/0.2792, allocations: 40 kB / 428.7 MB, free: 10.05 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.835e-05/0.2792, allocations: 36 kB / 428.7 MB, free: 10.02 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.746e-05/0.2793, allocations: 71.7 kB / 428.8 MB, free: 9.949 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002024/0.2795, allocations: 175.1 kB / 428.9 MB, free: 9.777 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000505/0.28, allocations: 392 kB / 429.3 MB, free: 9.395 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.729e-06/0.28, allocations: 4 kB / 429.3 MB, free: 9.391 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.333e-06/0.28, allocations: 4 kB / 429.3 MB, free: 9.387 MB / 334.1 MB Notification: Performance of Transformations before backend: time 8.015e-06/0.28, allocations: 0 / 429.3 MB, free: 9.387 MB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 61 * Number of variables: 61 Notification: Performance of Generate backend data structure: time 0.00154/0.2816, allocations: 0.6131 MB / 429.9 MB, free: 8.734 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.85e-05/0.2816, allocations: 8.031 kB / 429.9 MB, free: 8.727 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.845e-05/0.2817, allocations: 32.75 kB / 430 MB, free: 8.695 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005035/0.2822, allocations: 253.7 kB / 430.2 MB, free: 8.422 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.912e-05/0.2822, allocations: 24.8 kB / 430.2 MB, free: 8.395 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.575e-05/0.2823, allocations: 24.38 kB / 430.3 MB, free: 8.371 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007497/0.283, allocations: 323 kB / 430.6 MB, free: 8.043 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.149e-05/0.283, allocations: 0 / 430.6 MB, free: 8.043 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.972e-05/0.2831, allocations: 8 kB / 430.6 MB, free: 8.035 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.091e-05/0.2831, allocations: 8 kB / 430.6 MB, free: 8.027 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000822/0.2839, allocations: 273.8 kB / 430.9 MB, free: 7.762 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00204/0.2859, allocations: 1.092 MB / 432 MB, free: 6.582 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008263/0.2868, allocations: 206.5 kB / 432.2 MB, free: 6.371 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003148/0.2871, allocations: 84.92 kB / 432.2 MB, free: 6.285 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.907e-05/0.2871, allocations: 11.98 kB / 432.3 MB, free: 6.273 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004519/0.2876, allocations: 153 kB / 432.4 MB, free: 6.105 MB / 334.1 MB Notification: Performance of pre-optimization done (n=10): time 2.265e-06/0.2876, allocations: 0 / 432.4 MB, free: 6.105 MB / 334.1 MB Notification: Performance of matching and sorting (n=10): time 0.001281/0.2888, allocations: 330.1 kB / 432.7 MB, free: 5.773 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.299e-05/0.2889, allocations: 77.11 kB / 432.8 MB, free: 5.68 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004313/0.2894, allocations: 332.5 kB / 433.1 MB, free: 5.355 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.029e-05/0.2894, allocations: 29.7 kB / 433.2 MB, free: 5.32 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000183/0.2896, allocations: 215.8 kB / 433.4 MB, free: 5.105 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.871e-05/0.2896, allocations: 31.78 kB / 433.4 MB, free: 5.074 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001079/0.2897, allocations: 57.89 kB / 433.5 MB, free: 5.008 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001655/0.2899, allocations: 330.8 kB / 433.8 MB, free: 4.676 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003674/0.2902, allocations: 108.1 kB / 433.9 MB, free: 4.57 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004271/0.2907, allocations: 206.9 kB / 434.1 MB, free: 4.316 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007729/0.2914, allocations: 339.9 kB / 434.4 MB, free: 3.926 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.316e-06/0.2914, allocations: 0 / 434.4 MB, free: 3.926 MB / 334.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.00102/0.2925, allocations: 410.9 kB / 434.8 MB, free: 3.512 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.65e-05/0.2925, allocations: 38.2 kB / 434.9 MB, free: 3.469 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.167e-06/0.2925, allocations: 4 kB / 434.9 MB, free: 3.465 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002041/0.2927, allocations: 32.83 kB / 434.9 MB, free: 3.43 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002849/0.293, allocations: 67.83 kB / 435 MB, free: 3.363 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001274/0.2943, allocations: 1.303 MB / 436.3 MB, free: 1.941 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003776/0.2947, allocations: 59.86 kB / 436.3 MB, free: 1.883 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.972e-05/0.2947, allocations: 8 kB / 436.3 MB, free: 1.875 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 17 * Number of states: 0 () * Number of discrete variables: 5 (vIn.signalSource.count,$PRE.vIn.signalSource.count,vIn.signalSource.T_start,$PRE.vIn.signalSource.T_start,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (27): * Single equations (assignments): 25 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0002106/0.2949, allocations: 149.8 kB / 436.5 MB, free: 1.719 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.786e-05/0.295, allocations: 23.86 kB / 436.5 MB, free: 1.695 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.064e-05/0.295, allocations: 26.61 kB / 436.5 MB, free: 1.668 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.298e-06/0.295, allocations: 4 kB / 436.5 MB, free: 1.664 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.28e-06/0.295, allocations: 3.938 kB / 436.5 MB, free: 1.66 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.607e-06/0.295, allocations: 0 / 436.5 MB, free: 1.66 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005316/0.2956, allocations: 434.2 kB / 437 MB, free: 1.184 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.804e-06/0.2956, allocations: 0 / 437 MB, free: 1.184 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001786/0.2957, allocations: 27.97 kB / 437 MB, free: 1.156 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001102/0.2959, allocations: 28.78 kB / 437 MB, free: 1.125 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.645e-05/0.2959, allocations: 8.016 kB / 437 MB, free: 1.117 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001176/0.2971, allocations: 1.3 MB / 438.3 MB, free: 15.71 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.002e-06/0.2971, allocations: 0 / 438.3 MB, free: 15.71 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007922/0.2978, allocations: 266.5 kB / 438.6 MB, free: 15.42 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.166e-05/0.2979, allocations: 31.8 kB / 438.6 MB, free: 15.39 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.653e-05/0.2979, allocations: 0 / 438.6 MB, free: 15.39 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002258/0.2982, allocations: 23.97 kB / 438.6 MB, free: 15.37 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.488e-05/0.2983, allocations: 35.84 kB / 438.7 MB, free: 15.33 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.121e-05/0.2983, allocations: 0 / 438.7 MB, free: 15.33 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002745/0.2985, allocations: 231.1 kB / 438.9 MB, free: 15.11 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.2985, allocations: 0 / 438.9 MB, free: 15.11 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003896/0.2989, allocations: 71.89 kB / 439 MB, free: 15.04 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 3 ($whenCondition1,vIn.signalSource.T_start,vIn.signalSource.count) * Number of discrete states: 1 (vIn.signalSource.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (9): * Single equations (assignments): 6 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.000161/0.2991, allocations: 99.23 kB / 439.1 MB, free: 14.93 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001072/0.3002, allocations: 402.6 kB / 439.5 MB, free: 14.51 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.975e-06/0.3002, allocations: 4.156 kB / 439.5 MB, free: 14.5 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004961/0.3007, allocations: 214.5 kB / 439.7 MB, free: 14.28 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003665/0.301, allocations: 48.41 kB / 439.7 MB, free: 14.24 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001146/0.3022, allocations: 0.5145 MB / 440.2 MB, free: 13.69 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004094/0.3026, allocations: 0.7519 MB / 441 MB, free: 12.91 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.062e-05/0.3027, allocations: 27.42 kB / 441 MB, free: 12.88 MB / 350.1 MB Notification: Performance of SimCode: time 4.81e-07/0.3027, allocations: 0 / 441 MB, free: 12.88 MB / 350.1 MB Notification: Performance of Templates: time 0.008322/0.311, allocations: 4.66 MB / 445.7 MB, free: 8.23 MB / 350.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.sim & ./Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Comparator -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Comparator_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/OpAmps/Comparator/Comparator.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.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: 7.3548491129186]