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.001325/0.001325, allocations: 107.5 kB / 20.43 MB, free: 1.066 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.001429/0.001429, allocations: 187.5 kB / 23.7 MB, free: 4.188 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.517/1.517, allocations: 225.7 MB / 252.5 MB, free: 12.87 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.001551/0.001551, allocations: 47.94 kB / 370.9 MB, free: 9.176 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3188/0.3204, allocations: 52.18 MB / 423.1 MB, free: 14.49 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.Comparator): time 0.004898/0.3252, allocations: 2.694 MB / 425.8 MB, free: 11.78 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001513/0.3268, allocations: 0.6817 MB / 426.5 MB, free: 11.09 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001722/0.3269, allocations: 7.938 kB / 426.5 MB, free: 11.09 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001876/0.3271, allocations: 47.5 kB / 426.5 MB, free: 11.04 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002204/0.3273, allocations: 103.2 kB / 426.6 MB, free: 10.94 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003245/0.3277, allocations: 111.8 kB / 426.7 MB, free: 10.83 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005352/0.3282, allocations: 394.4 kB / 427.1 MB, free: 10.44 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002596/0.3285, allocations: 91.05 kB / 427.2 MB, free: 10.36 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000243/0.3287, allocations: 151.4 kB / 427.4 MB, free: 10.21 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002545/0.329, allocations: 151.2 kB / 427.5 MB, free: 10.06 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 6.816e-05/0.329, allocations: 36 kB / 427.5 MB, free: 10.02 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.609e-05/0.3291, allocations: 36 kB / 427.6 MB, free: 9.988 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 9.59e-05/0.3292, allocations: 83.67 kB / 427.7 MB, free: 9.906 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001681/0.3294, allocations: 143.3 kB / 427.8 MB, free: 9.766 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004916/0.3298, allocations: 394.1 kB / 428.2 MB, free: 9.383 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.995e-06/0.3299, allocations: 4 kB / 428.2 MB, free: 9.379 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.573e-06/0.3299, allocations: 4 kB / 428.2 MB, free: 9.375 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.833e-05/0.3299, allocations: 0 / 428.2 MB, free: 9.375 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.001428/0.3313, allocations: 0.6083 MB / 428.8 MB, free: 8.73 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.266e-05/0.3313, allocations: 12.03 kB / 428.8 MB, free: 8.719 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.816e-05/0.3314, allocations: 40.7 kB / 428.8 MB, free: 8.68 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005068/0.3319, allocations: 241.8 kB / 429.1 MB, free: 8.418 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.333e-05/0.332, allocations: 16.88 kB / 429.1 MB, free: 8.398 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.567e-05/0.332, allocations: 24.38 kB / 429.1 MB, free: 8.375 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007524/0.3328, allocations: 323 kB / 429.4 MB, free: 8.047 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.517e-05/0.3328, allocations: 7.984 kB / 429.4 MB, free: 8.039 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.182e-05/0.3328, allocations: 8 kB / 429.5 MB, free: 8.031 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.129e-05/0.3328, allocations: 8 kB / 429.5 MB, free: 8.023 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008099/0.3336, allocations: 277.8 kB / 429.7 MB, free: 7.754 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00189/0.3355, allocations: 0.9595 MB / 430.7 MB, free: 6.719 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008048/0.3363, allocations: 206.5 kB / 430.9 MB, free: 6.508 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003065/0.3366, allocations: 84.78 kB / 431 MB, free: 6.422 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.001e-05/0.3367, allocations: 8.172 kB / 431 MB, free: 6.414 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004317/0.3371, allocations: 157 kB / 431.1 MB, free: 6.242 MB / 334.1 MB Notification: Performance of pre-optimization done (n=10): time 1.723e-06/0.3371, allocations: 0 / 431.1 MB, free: 6.242 MB / 334.1 MB Notification: Performance of matching and sorting (n=10): time 0.001232/0.3383, allocations: 334.1 kB / 431.5 MB, free: 5.906 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.235e-05/0.3384, allocations: 77.11 kB / 431.5 MB, free: 5.812 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003387/0.3387, allocations: 285.8 kB / 431.8 MB, free: 5.527 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.904e-05/0.3388, allocations: 33.7 kB / 431.9 MB, free: 5.488 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001695/0.3389, allocations: 227.8 kB / 432.1 MB, free: 5.262 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.346e-05/0.339, allocations: 27.75 kB / 432.1 MB, free: 5.234 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001024/0.3391, allocations: 61.91 kB / 432.2 MB, free: 5.164 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001683/0.3392, allocations: 334.8 kB / 432.5 MB, free: 4.828 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00036/0.3396, allocations: 125.9 kB / 432.6 MB, free: 4.699 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000448/0.34, allocations: 240.6 kB / 432.8 MB, free: 4.406 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007332/0.3408, allocations: 332 kB / 433.2 MB, free: 4.023 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.166e-06/0.3408, allocations: 0 / 433.2 MB, free: 4.023 MB / 334.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0009894/0.3418, allocations: 429.5 kB / 433.6 MB, free: 3.582 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.441e-05/0.3418, allocations: 33.7 kB / 433.6 MB, free: 3.543 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.328e-06/0.3418, allocations: 4 kB / 433.6 MB, free: 3.539 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002189/0.342, allocations: 44.98 kB / 433.7 MB, free: 3.492 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002708/0.3423, allocations: 63.89 kB / 433.7 MB, free: 3.43 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001187/0.3435, allocations: 1.268 MB / 435 MB, free: 2.062 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003367/0.3438, allocations: 55.91 kB / 435.1 MB, free: 2.008 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.847e-05/0.3439, allocations: 16 kB / 435.1 MB, free: 1.992 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.0001785/0.3441, allocations: 153.5 kB / 435.2 MB, free: 1.836 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.704e-05/0.3441, allocations: 20.23 kB / 435.2 MB, free: 1.816 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.515e-05/0.3441, allocations: 25.7 kB / 435.3 MB, free: 1.785 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.643e-06/0.3441, allocations: 0 / 435.3 MB, free: 1.785 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.53e-06/0.3441, allocations: 4 kB / 435.3 MB, free: 1.781 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.356e-06/0.3442, allocations: 3.938 kB / 435.3 MB, free: 1.777 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004626/0.3446, allocations: 366.8 kB / 435.6 MB, free: 1.379 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.623e-06/0.3446, allocations: 0 / 435.6 MB, free: 1.379 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001707/0.3448, allocations: 31.95 kB / 435.7 MB, free: 1.348 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.343e-05/0.3449, allocations: 24.84 kB / 435.7 MB, free: 1.32 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.513e-05/0.3449, allocations: 0 / 435.7 MB, free: 1.32 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001182/0.3461, allocations: 1.281 MB / 437 MB, free: 15.94 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.088e-06/0.3461, allocations: 4.031 kB / 437 MB, free: 15.94 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007699/0.3469, allocations: 270.6 kB / 437.2 MB, free: 15.65 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.571e-05/0.3469, allocations: 19.86 kB / 437.3 MB, free: 15.63 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.647e-05/0.3469, allocations: 4 kB / 437.3 MB, free: 15.62 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002221/0.3472, allocations: 31.95 kB / 437.3 MB, free: 15.59 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.087e-05/0.3472, allocations: 11.98 kB / 437.3 MB, free: 15.58 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.473e-05/0.3473, allocations: 7.984 kB / 437.3 MB, free: 15.57 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002394/0.3475, allocations: 197.2 kB / 437.5 MB, free: 15.38 MB / 350.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3475, allocations: 8 kB / 437.5 MB, free: 15.38 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003603/0.3479, allocations: 71.84 kB / 437.6 MB, free: 15.3 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.0001757/0.348, allocations: 103.2 kB / 437.7 MB, free: 15.19 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001144/0.3492, allocations: 423.8 kB / 438.1 MB, free: 14.75 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.305e-06/0.3492, allocations: 4 kB / 438.1 MB, free: 14.74 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005354/0.3497, allocations: 219.3 kB / 438.3 MB, free: 14.52 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003928/0.3501, allocations: 44.64 kB / 438.4 MB, free: 14.47 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001296/0.3514, allocations: 496.5 kB / 438.8 MB, free: 13.96 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000195/0.3516, allocations: 146.9 kB / 439 MB, free: 13.8 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001159/0.3517, allocations: 30.28 kB / 439 MB, free: 13.77 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.889e-05/0.3518, allocations: 19.44 kB / 439 MB, free: 13.75 MB / 350.1 MB Notification: Performance of SimCode: time 5.21e-07/0.3518, allocations: 0 / 439 MB, free: 13.75 MB / 350.1 MB Notification: Performance of Templates: time 0.008523/0.3603, allocations: 3.498 MB / 442.5 MB, free: 10.31 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.676383960992098]