Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.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.001272/0.001272, allocations: 107.6 kB / 21.19 MB, free: 0.6484 MB / 14.72 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.001411/0.001411, allocations: 213.1 kB / 24.48 MB, free: 3.957 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.471/1.471, allocations: 230.6 MB / 258.2 MB, free: 7.797 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+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.OpAmps.Comparator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|opAmp.out.v|opAmp.out.i",fileNamePrefix="Modelica_4.1.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.1.0_Modelica.Electrical.Analog.Examples.OpAmps.Comparator") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001563/0.001563, allocations: 47.94 kB / 379 MB, free: 2.441 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.292/0.2935, allocations: 53.37 MB / 432.4 MB, free: 6.676 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.Comparator): time 0.004414/0.298, allocations: 2.711 MB / 435.1 MB, free: 3.957 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001479/0.2994, allocations: 0.7089 MB / 435.8 MB, free: 3.242 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001624/0.2996, allocations: 7.938 kB / 435.8 MB, free: 3.234 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001838/0.2998, allocations: 51.5 kB / 435.8 MB, free: 3.184 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002219/0.3, allocations: 103.2 kB / 435.9 MB, free: 3.082 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003461/0.3003, allocations: 111.8 kB / 436.1 MB, free: 2.973 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004949/0.3008, allocations: 390.5 kB / 436.4 MB, free: 2.59 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002347/0.3011, allocations: 99.41 kB / 436.5 MB, free: 2.496 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002188/0.3013, allocations: 155.4 kB / 436.7 MB, free: 2.344 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000255/0.3016, allocations: 175.2 kB / 436.9 MB, free: 2.172 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 6.862e-05/0.3016, allocations: 40 kB / 436.9 MB, free: 2.133 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.679e-05/0.3017, allocations: 36 kB / 436.9 MB, free: 2.098 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 8.59e-05/0.3018, allocations: 79.69 kB / 437 MB, free: 2.02 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001781/0.3019, allocations: 139.3 kB / 437.1 MB, free: 1.883 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004824/0.3024, allocations: 398.1 kB / 437.5 MB, free: 1.496 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.438e-06/0.3024, allocations: 0 / 437.5 MB, free: 1.496 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.263e-06/0.3024, allocations: 0 / 437.5 MB, free: 1.496 MB / 334.1 MB Notification: Performance of Transformations before backend: time 9.498e-06/0.3024, allocations: 3.984 kB / 437.5 MB, free: 1.492 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.00146/0.3039, allocations: 0.6131 MB / 438.2 MB, free: 0.8398 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.942e-05/0.3039, allocations: 12.03 kB / 438.2 MB, free: 0.8281 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.791e-05/0.304, allocations: 36.7 kB / 438.2 MB, free: 0.793 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004577/0.3045, allocations: 241.8 kB / 438.4 MB, free: 0.5312 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.451e-05/0.3045, allocations: 16.88 kB / 438.5 MB, free: 0.5156 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.72e-05/0.3046, allocations: 24.38 kB / 438.5 MB, free: 0.4922 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007272/0.3053, allocations: 323 kB / 438.8 MB, free: 168 kB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.349e-05/0.3053, allocations: 4 kB / 438.8 MB, free: 164 kB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.007e-05/0.3053, allocations: 8 kB / 438.8 MB, free: 156 kB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.488e-06/0.3053, allocations: 8 kB / 438.8 MB, free: 148 kB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008287/0.3062, allocations: 277.7 kB / 439.1 MB, free: 15.87 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001884/0.308, allocations: 0.9635 MB / 440 MB, free: 14.84 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008099/0.3089, allocations: 202.5 kB / 440.2 MB, free: 14.63 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003039/0.3092, allocations: 88.78 kB / 440.3 MB, free: 14.54 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.619e-05/0.3092, allocations: 4.188 kB / 440.3 MB, free: 14.54 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004386/0.3096, allocations: 160.9 kB / 440.5 MB, free: 14.36 MB / 350.1 MB Notification: Performance of pre-optimization done (n=10): time 1.533e-06/0.3096, allocations: 3.938 kB / 440.5 MB, free: 14.36 MB / 350.1 MB Notification: Performance of matching and sorting (n=10): time 0.001265/0.3109, allocations: 330.1 kB / 440.8 MB, free: 14.02 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.608e-05/0.311, allocations: 81.05 kB / 440.9 MB, free: 13.93 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003511/0.3113, allocations: 293.7 kB / 441.2 MB, free: 13.63 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.999e-05/0.3113, allocations: 29.7 kB / 441.2 MB, free: 13.6 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001719/0.3115, allocations: 219.8 kB / 441.4 MB, free: 13.38 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.23e-05/0.3116, allocations: 43.69 kB / 441.5 MB, free: 13.34 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001093/0.3117, allocations: 53.97 kB / 441.5 MB, free: 13.27 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001574/0.3118, allocations: 330.8 kB / 441.8 MB, free: 12.94 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003871/0.3122, allocations: 125.9 kB / 442 MB, free: 12.81 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004551/0.3127, allocations: 249.4 kB / 442.2 MB, free: 12.51 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007574/0.3134, allocations: 332 kB / 442.5 MB, free: 12.13 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.735e-06/0.3134, allocations: 0 / 442.5 MB, free: 12.13 MB / 350.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.001021/0.3144, allocations: 436.7 kB / 443 MB, free: 11.68 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.699e-05/0.3145, allocations: 37.69 kB / 443 MB, free: 11.64 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.015e-05/0.3145, allocations: 4 kB / 443 MB, free: 11.64 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002096/0.3147, allocations: 37 kB / 443 MB, free: 11.6 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002806/0.315, allocations: 59.89 kB / 443.1 MB, free: 11.54 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0012/0.3162, allocations: 1.268 MB / 444.4 MB, free: 10.17 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003538/0.3165, allocations: 51.97 kB / 444.4 MB, free: 10.12 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.474e-05/0.3166, allocations: 8 kB / 444.4 MB, free: 10.11 MB / 350.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.000184/0.3168, allocations: 153.6 kB / 444.6 MB, free: 9.953 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.28e-05/0.3168, allocations: 23.86 kB / 444.6 MB, free: 9.93 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.728e-05/0.3169, allocations: 29.7 kB / 444.6 MB, free: 9.895 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.334e-06/0.3169, allocations: 0 / 444.6 MB, free: 9.895 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.397e-06/0.3169, allocations: 0 / 444.6 MB, free: 9.895 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.26e-06/0.3169, allocations: 4 kB / 444.6 MB, free: 9.891 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004442/0.3173, allocations: 358.9 kB / 445 MB, free: 9.5 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.683e-06/0.3173, allocations: 0 / 445 MB, free: 9.5 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001815/0.3175, allocations: 31.97 kB / 445 MB, free: 9.469 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001001/0.3176, allocations: 24.78 kB / 445 MB, free: 9.441 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.911e-05/0.3176, allocations: 7.984 kB / 445 MB, free: 9.434 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001107/0.3187, allocations: 1.28 MB / 446.3 MB, free: 8.055 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.193e-06/0.3187, allocations: 384 / 446.3 MB, free: 8.055 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007668/0.3195, allocations: 270.6 kB / 446.6 MB, free: 7.766 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.71e-05/0.3195, allocations: 23.84 kB / 446.6 MB, free: 7.742 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.063e-05/0.3196, allocations: 8 kB / 446.6 MB, free: 7.734 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002272/0.3198, allocations: 19.97 kB / 446.6 MB, free: 7.715 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.906e-05/0.3199, allocations: 19.97 kB / 446.7 MB, free: 7.695 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.421e-05/0.3199, allocations: 4 kB / 446.7 MB, free: 7.691 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002262/0.3201, allocations: 205.2 kB / 446.9 MB, free: 7.488 MB / 350.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3201, allocations: 0 / 446.9 MB, free: 7.488 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003694/0.3205, allocations: 75.84 kB / 446.9 MB, free: 7.414 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.0001378/0.3206, allocations: 99.17 kB / 447 MB, free: 7.305 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001054/0.3217, allocations: 431.7 kB / 447.5 MB, free: 6.852 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.054e-06/0.3217, allocations: 0 / 447.5 MB, free: 6.852 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005042/0.3222, allocations: 215.4 kB / 447.7 MB, free: 6.629 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003616/0.3225, allocations: 47.53 kB / 447.7 MB, free: 6.586 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001151/0.3237, allocations: 0.5066 MB / 448.2 MB, free: 6.043 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001374/0.3238, allocations: 150.9 kB / 448.4 MB, free: 5.879 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.673e-05/0.3239, allocations: 23.42 kB / 448.4 MB, free: 5.855 MB / 350.1 MB Notification: Performance of SimCode: time 5.71e-07/0.3239, allocations: 0 / 448.4 MB, free: 5.855 MB / 350.1 MB Notification: Performance of Templates: time 0.007479/0.3314, allocations: 4.593 MB / 453 MB, free: 1.277 MB / 350.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.sim & ./Modelica_4.1.0_Modelica.Electrical.Analog.Examples.OpAmps.Comparator -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Analog.Examples.OpAmps.Comparator_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Analog/Examples/OpAmps/Comparator/Comparator.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.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.4502430300053675]