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.001346/0.001346, allocations: 105.5 kB / 20.43 MB, free: 1.473 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.001415/0.001415, allocations: 184 kB / 23.72 MB, free: 4.711 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.538/1.538, allocations: 225.6 MB / 252.5 MB, free: 13.02 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.002201/0.002201, allocations: 47.92 kB / 371 MB, free: 9.297 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3156/0.3178, allocations: 52.18 MB / 423.2 MB, free: 14.65 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.Comparator): time 0.004673/0.3225, allocations: 2.924 MB / 426.1 MB, free: 11.71 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001407/0.3239, allocations: 0.7089 MB / 426.8 MB, free: 11 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001542/0.324, allocations: 7.938 kB / 426.8 MB, free: 10.99 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001744/0.3242, allocations: 51.5 kB / 426.8 MB, free: 10.94 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000239/0.3244, allocations: 99.17 kB / 426.9 MB, free: 10.84 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003343/0.3248, allocations: 103.8 kB / 427 MB, free: 10.74 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004829/0.3252, allocations: 402.4 kB / 427.4 MB, free: 10.34 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000229/0.3255, allocations: 92.47 kB / 427.5 MB, free: 10.25 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001933/0.3257, allocations: 155.4 kB / 427.7 MB, free: 10.1 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002282/0.3259, allocations: 171.3 kB / 427.8 MB, free: 9.934 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 6.182e-05/0.326, allocations: 36 kB / 427.9 MB, free: 9.898 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.117e-05/0.326, allocations: 43.94 kB / 427.9 MB, free: 9.855 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00015/0.3262, allocations: 75.75 kB / 428 MB, free: 9.781 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001791/0.3264, allocations: 171.1 kB / 428.2 MB, free: 9.613 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004782/0.3268, allocations: 395.7 kB / 428.6 MB, free: 9.23 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.717e-06/0.3268, allocations: 0 / 428.6 MB, free: 9.23 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.333e-06/0.3268, allocations: 0 / 428.6 MB, free: 9.23 MB / 334.1 MB Notification: Performance of Transformations before backend: time 9.839e-06/0.3268, allocations: 8 kB / 428.6 MB, free: 9.223 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.001495/0.3283, allocations: 0.6014 MB / 429.2 MB, free: 8.582 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.308e-05/0.3284, allocations: 12.03 kB / 429.2 MB, free: 8.57 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.912e-05/0.3285, allocations: 32.75 kB / 429.2 MB, free: 8.539 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004754/0.3289, allocations: 249.7 kB / 429.4 MB, free: 8.27 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.44e-05/0.329, allocations: 20.88 kB / 429.5 MB, free: 8.246 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.945e-05/0.329, allocations: 24.38 kB / 429.5 MB, free: 8.223 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008325/0.3299, allocations: 323 kB / 429.8 MB, free: 7.895 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.262e-05/0.3299, allocations: 0 / 429.8 MB, free: 7.895 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.138e-05/0.3299, allocations: 12 kB / 429.8 MB, free: 7.883 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.272e-05/0.3299, allocations: 8 kB / 429.8 MB, free: 7.875 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009751/0.3309, allocations: 277.7 kB / 430.1 MB, free: 7.605 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002122/0.333, allocations: 1.099 MB / 431.2 MB, free: 6.418 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000875/0.3339, allocations: 198.5 kB / 431.4 MB, free: 6.215 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003342/0.3342, allocations: 88.78 kB / 431.5 MB, free: 6.125 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.28e-05/0.3342, allocations: 4 kB / 431.5 MB, free: 6.121 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004669/0.3347, allocations: 161.1 kB / 431.6 MB, free: 5.945 MB / 334.1 MB Notification: Performance of pre-optimization done (n=10): time 1.573e-06/0.3347, allocations: 0 / 431.6 MB, free: 5.945 MB / 334.1 MB Notification: Performance of matching and sorting (n=10): time 0.001372/0.3361, allocations: 334.1 kB / 432 MB, free: 5.609 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.213e-05/0.3361, allocations: 81.09 kB / 432 MB, free: 5.512 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004041/0.3365, allocations: 332.5 kB / 432.4 MB, free: 5.188 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.652e-05/0.3366, allocations: 25.7 kB / 432.4 MB, free: 5.156 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000163/0.3367, allocations: 211.8 kB / 432.6 MB, free: 4.945 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.917e-05/0.3368, allocations: 35.73 kB / 432.6 MB, free: 4.91 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001034/0.3369, allocations: 57.88 kB / 432.7 MB, free: 4.844 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001715/0.3371, allocations: 334.8 kB / 433 MB, free: 4.508 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003927/0.3375, allocations: 104.2 kB / 433.1 MB, free: 4.406 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004645/0.3379, allocations: 207 kB / 433.3 MB, free: 4.152 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008179/0.3387, allocations: 331.9 kB / 433.6 MB, free: 3.77 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.451e-06/0.3387, allocations: 3.984 kB / 433.7 MB, free: 3.766 MB / 334.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.001091/0.3398, allocations: 407.5 kB / 434.1 MB, free: 3.352 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.104e-05/0.3399, allocations: 33.7 kB / 434.1 MB, free: 3.312 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.556e-06/0.3399, allocations: 4 kB / 434.1 MB, free: 3.309 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000185/0.3401, allocations: 33.19 kB / 434.1 MB, free: 3.273 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002989/0.3404, allocations: 67.88 kB / 434.2 MB, free: 3.207 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001225/0.3416, allocations: 1.299 MB / 435.5 MB, free: 1.789 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003625/0.342, allocations: 55.83 kB / 435.5 MB, free: 1.734 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.742e-05/0.342, allocations: 16 kB / 435.6 MB, free: 1.719 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.0001718/0.3422, allocations: 141.8 kB / 435.7 MB, free: 1.57 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.348e-05/0.3422, allocations: 23.86 kB / 435.7 MB, free: 1.547 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.353e-05/0.3423, allocations: 30.61 kB / 435.7 MB, free: 1.516 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.613e-06/0.3423, allocations: 0 / 435.7 MB, free: 1.516 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.733e-06/0.3423, allocations: 7.938 kB / 435.8 MB, free: 1.508 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.856e-06/0.3423, allocations: 7.969 kB / 435.8 MB, free: 1.5 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000517/0.3428, allocations: 426.2 kB / 436.2 MB, free: 1.031 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.659e-06/0.3428, allocations: 4 kB / 436.2 MB, free: 1.027 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001949/0.343, allocations: 36.27 kB / 436.2 MB, free: 0.9922 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001096/0.3431, allocations: 28.78 kB / 436.2 MB, free: 0.9609 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.57e-05/0.3431, allocations: 4 kB / 436.2 MB, free: 0.957 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001077/0.3442, allocations: 1.292 MB / 437.5 MB, free: 15.55 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.112e-06/0.3442, allocations: 3.938 kB / 437.5 MB, free: 15.55 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007994/0.345, allocations: 270.5 kB / 437.8 MB, free: 15.26 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.677e-05/0.3451, allocations: 31.8 kB / 437.8 MB, free: 15.23 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.385e-05/0.3451, allocations: 4 kB / 437.8 MB, free: 15.23 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002417/0.3453, allocations: 23.97 kB / 437.9 MB, free: 15.2 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.808e-05/0.3454, allocations: 27.91 kB / 437.9 MB, free: 15.18 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.083e-05/0.3454, allocations: 0 / 437.9 MB, free: 15.18 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002664/0.3457, allocations: 235.1 kB / 438.1 MB, free: 14.95 MB / 350.1 MB Notification: Performance of sort global known variables: time 9.1e-08/0.3457, allocations: 0 / 438.1 MB, free: 14.95 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003494/0.346, allocations: 67.89 kB / 438.2 MB, free: 14.88 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.0001304/0.3462, allocations: 103.2 kB / 438.3 MB, free: 14.77 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001092/0.3473, allocations: 402.3 kB / 438.7 MB, free: 14.35 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 4.398e-06/0.3473, allocations: 4.312 kB / 438.7 MB, free: 14.34 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005101/0.3478, allocations: 210.6 kB / 438.9 MB, free: 14.12 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003296/0.3481, allocations: 45.56 kB / 438.9 MB, free: 14.08 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001093/0.3492, allocations: 0.4895 MB / 439.4 MB, free: 13.56 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000421/0.3496, allocations: 0.7558 MB / 440.2 MB, free: 12.78 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001264/0.3497, allocations: 34.95 kB / 440.2 MB, free: 12.75 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.728e-05/0.3498, allocations: 27.44 kB / 440.2 MB, free: 12.72 MB / 350.1 MB Notification: Performance of SimCode: time 3.61e-07/0.3498, allocations: 0 / 440.2 MB, free: 12.72 MB / 350.1 MB Notification: Performance of Templates: time 0.008188/0.358, allocations: 3.412 MB / 443.7 MB, free: 9.344 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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/OpAmps/Comparator/Comparator.csv","/var/lib/jenkins/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: 4.827628085389733]