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.002107/0.002107, allocations: 120.4 kB / 17.79 MB, free: 5.285 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.002696/0.002696, allocations: 199.3 kB / 20.74 MB, free: 2.344 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.571/1.571, allocations: 230.5 MB / 254.1 MB, free: 15.1 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.00165/0.00165, allocations: 47.92 kB / 373.5 MB, free: 9.672 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1147/0.1164, allocations: 53.33 MB / 426.8 MB, free: 4.246 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.Comparator): time 0.004687/0.1211, allocations: 2.918 MB / 429.8 MB, free: 1.312 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001488/0.1226, allocations: 0.7478 MB / 430.5 MB, free: 0.5586 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001515/0.1227, allocations: 4 kB / 430.5 MB, free: 0.5547 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001862/0.1229, allocations: 55.5 kB / 430.6 MB, free: 0.5 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002128/0.1231, allocations: 95.19 kB / 430.7 MB, free: 416 kB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003075/0.1234, allocations: 103.8 kB / 430.8 MB, free: 312 kB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.2213/0.3448, allocations: 395.4 kB / 431.1 MB, free: 8.156 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003037/0.3451, allocations: 92.75 kB / 431.2 MB, free: 8.145 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002839/0.3453, allocations: 157.2 kB / 431.4 MB, free: 8.137 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002199/0.3456, allocations: 168.5 kB / 431.6 MB, free: 8.105 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.254e-05/0.3456, allocations: 36.47 kB / 431.6 MB, free: 8.105 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.121e-05/0.3457, allocations: 37.22 kB / 431.6 MB, free: 8.105 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 6.308e-05/0.3458, allocations: 79.67 kB / 431.7 MB, free: 8.094 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001507/0.3459, allocations: 169.7 kB / 431.9 MB, free: 8.047 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004309/0.3463, allocations: 398.3 kB / 432.3 MB, free: 7.988 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.208e-06/0.3463, allocations: 0 / 432.3 MB, free: 7.988 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.784e-06/0.3463, allocations: 1.25 kB / 432.3 MB, free: 7.988 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.035e-06/0.3464, allocations: 0.9688 kB / 432.3 MB, free: 7.988 MB / 350.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.00128/0.3476, allocations: 0.6853 MB / 432.9 MB, free: 7.5 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.541e-05/0.3477, allocations: 12.25 kB / 433 MB, free: 7.5 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.746e-05/0.3477, allocations: 37.67 kB / 433 MB, free: 7.48 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003158/0.3481, allocations: 295.7 kB / 433.3 MB, free: 7.25 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.321e-05/0.3481, allocations: 22.91 kB / 433.3 MB, free: 7.246 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.239e-05/0.3481, allocations: 27.88 kB / 433.3 MB, free: 7.242 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006676/0.3488, allocations: 326.8 kB / 433.7 MB, free: 7.191 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.443e-05/0.3488, allocations: 5.094 kB / 433.7 MB, free: 7.188 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.811e-05/0.3488, allocations: 10.44 kB / 433.7 MB, free: 7.188 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.294e-05/0.3488, allocations: 6.531 kB / 433.7 MB, free: 7.188 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008092/0.3497, allocations: 275.2 kB / 433.9 MB, free: 7.188 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001636/0.3513, allocations: 1.133 MB / 435.1 MB, free: 6.613 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008629/0.3522, allocations: 200.8 kB / 435.3 MB, free: 6.59 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003372/0.3525, allocations: 84.25 kB / 435.4 MB, free: 6.582 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.812e-05/0.3525, allocations: 2.938 kB / 435.4 MB, free: 6.582 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004729/0.353, allocations: 157.7 kB / 435.5 MB, free: 6.52 MB / 350.1 MB Notification: Performance of pre-optimization done (n=10): time 2.485e-06/0.353, allocations: 4 kB / 435.5 MB, free: 6.516 MB / 350.1 MB Notification: Performance of matching and sorting (n=10): time 0.001332/0.3543, allocations: 410.7 kB / 435.9 MB, free: 6.359 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.929e-05/0.3544, allocations: 80.81 kB / 436 MB, free: 6.266 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003503/0.3547, allocations: 334.2 kB / 436.3 MB, free: 6.156 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.799e-05/0.3547, allocations: 30.61 kB / 436.4 MB, free: 6.125 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001032/0.3548, allocations: 211.3 kB / 436.6 MB, free: 5.988 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.87e-05/0.3549, allocations: 36.2 kB / 436.6 MB, free: 5.965 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.36e-05/0.355, allocations: 57.19 kB / 436.6 MB, free: 5.945 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 7.2e-05/0.355, allocations: 339.5 kB / 437 MB, free: 5.633 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003791/0.3554, allocations: 99.69 kB / 437.1 MB, free: 5.633 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003943/0.3558, allocations: 204.5 kB / 437.3 MB, free: 5.496 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007408/0.3565, allocations: 333.8 kB / 437.6 MB, free: 5.32 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.278e-06/0.3565, allocations: 1.188 kB / 437.6 MB, free: 5.32 MB / 350.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.001015/0.3576, allocations: 407.9 kB / 438 MB, free: 5.223 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.329e-05/0.3576, allocations: 35.36 kB / 438 MB, free: 5.191 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.728e-06/0.3576, allocations: 4.031 kB / 438 MB, free: 5.191 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001891/0.3578, allocations: 29.78 kB / 438.1 MB, free: 5.184 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000297/0.3581, allocations: 69.59 kB / 438.1 MB, free: 5.18 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007951/0.3589, allocations: 1.407 MB / 439.5 MB, free: 3.82 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003594/0.3592, allocations: 59.41 kB / 439.6 MB, free: 3.797 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.253e-05/0.3593, allocations: 16.06 kB / 439.6 MB, free: 3.797 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.0001334/0.3594, allocations: 147.5 kB / 439.8 MB, free: 3.68 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.938e-05/0.3595, allocations: 28.59 kB / 439.8 MB, free: 3.664 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.299e-05/0.3595, allocations: 29.92 kB / 439.8 MB, free: 3.656 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.514e-06/0.3595, allocations: 1.188 kB / 439.8 MB, free: 3.656 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.989e-06/0.3595, allocations: 5.5 kB / 439.8 MB, free: 3.656 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.695e-06/0.3596, allocations: 4.734 kB / 439.8 MB, free: 3.652 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005406/0.3601, allocations: 448.8 kB / 440.3 MB, free: 3.348 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.383e-06/0.3601, allocations: 0 / 440.3 MB, free: 3.348 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002012/0.3603, allocations: 37.88 kB / 440.3 MB, free: 3.344 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000119/0.3604, allocations: 26.19 kB / 440.3 MB, free: 3.332 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.979e-05/0.3604, allocations: 6.344 kB / 440.3 MB, free: 3.328 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000792/0.3612, allocations: 1.392 MB / 441.7 MB, free: 1.922 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.733e-06/0.3612, allocations: 0 / 441.7 MB, free: 1.922 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008109/0.362, allocations: 279.5 kB / 442 MB, free: 1.781 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.434e-05/0.3621, allocations: 109.3 kB / 442.1 MB, free: 1.668 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.82e-05/0.3621, allocations: 2.094 kB / 442.1 MB, free: 1.668 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002443/0.3624, allocations: 24.77 kB / 442.1 MB, free: 1.668 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.703e-05/0.3625, allocations: 23.7 kB / 442.2 MB, free: 1.656 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.4e-05/0.3625, allocations: 7.391 kB / 442.2 MB, free: 1.652 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002276/0.3627, allocations: 228 kB / 442.4 MB, free: 1.531 MB / 350.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3627, allocations: 5.281 kB / 442.4 MB, free: 1.527 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000367/0.3631, allocations: 68.08 kB / 442.5 MB, free: 1.516 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.0001166/0.3632, allocations: 104.3 kB / 442.6 MB, free: 1.422 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.00101/0.3642, allocations: 402.4 kB / 443 MB, free: 1.199 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.495e-06/0.3642, allocations: 0.9688 kB / 443 MB, free: 1.199 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005108/0.3647, allocations: 213.4 kB / 443.2 MB, free: 1.066 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003538/0.3651, allocations: 49.94 kB / 443.2 MB, free: 1.047 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001029/0.3661, allocations: 0.4913 MB / 443.7 MB, free: 0.75 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002246/0.3663, allocations: 0.7532 MB / 444.5 MB, free: 52 kB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001243/0.3664, allocations: 34.02 kB / 444.5 MB, free: 44 kB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.637e-05/0.3665, allocations: 22.92 kB / 444.5 MB, free: 36 kB / 350.1 MB Notification: Performance of SimCode: time 3.3e-07/0.3665, allocations: 3.938 kB / 444.5 MB, free: 32 kB / 350.1 MB Notification: Performance of Templates: time 0.008834/0.3754, allocations: 3.308 MB / 447.8 MB, free: 15.84 MB / 366.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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Analog/Examples/OpAmps/Comparator/Comparator.csv","/var/lib/jenkins/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: 4.867221929132938]