Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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.00196/0.00196, allocations: 100.3 kB / 21.73 MB, free: 2.695 MB / 18.57 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.002349/0.002349, allocations: 165.2 kB / 25.02 MB, free: 8.949 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.461/1.461, allocations: 158.6 MB / 186.8 MB, free: 2.93 MB / 170.7 MB " [Timeout remaining time 178] Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3.2.3_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_3.2.3_Modelica.Electrical.Analog.Examples.OpAmps.Comparator") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.893e-06/1.893e-06, allocations: 0 / 250.4 MB, free: 7.801 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.385e-05/3.575e-05, allocations: 6.109 kB / 250.4 MB, free: 7.797 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.Comparator): time 0.004896/0.004931, allocations: 2.653 MB / 253.1 MB, free: 5.125 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.001707/0.006639, allocations: 0.7214 MB / 253.8 MB, free: 4.395 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002254/0.006864, allocations: 12 kB / 253.8 MB, free: 4.383 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000213/0.007077, allocations: 51.5 kB / 253.8 MB, free: 4.332 MB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003338/0.007411, allocations: 99.12 kB / 253.9 MB, free: 4.234 MB / 234.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006359/0.008047, allocations: 115.7 kB / 254 MB, free: 4.121 MB / 234.7 MB Notification: Performance of NFFlatten.flatten: time 0.0006328/0.008679, allocations: 402.3 kB / 254.4 MB, free: 3.727 MB / 234.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002485/0.008928, allocations: 96.41 kB / 254.5 MB, free: 3.629 MB / 234.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000396/0.009324, allocations: 223.5 kB / 254.8 MB, free: 3.41 MB / 234.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002602/0.009584, allocations: 127.6 kB / 254.9 MB, free: 3.285 MB / 234.7 MB Notification: Performance of NFPackage.collectConstants: time 8.629e-05/0.00967, allocations: 40 kB / 254.9 MB, free: 3.246 MB / 234.7 MB Notification: Performance of NFFlatten.collectFunctions: time 7.521e-05/0.009746, allocations: 39.94 kB / 255 MB, free: 3.207 MB / 234.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001118/0.009857, allocations: 87.66 kB / 255 MB, free: 3.121 MB / 234.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001949/0.01005, allocations: 115.7 kB / 255.2 MB, free: 3.008 MB / 234.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0006002/0.01065, allocations: 406.8 kB / 255.5 MB, free: 2.609 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.386e-06/0.01066, allocations: 0 / 255.5 MB, free: 2.609 MB / 234.7 MB Notification: Performance of FrontEnd: time 1.342e-06/0.01066, allocations: 0 / 255.5 MB, free: 2.609 MB / 234.7 MB Notification: Performance of Transformations before backend: time 1.1e-05/0.01067, allocations: 3.938 kB / 255.6 MB, free: 2.605 MB / 234.7 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.001641/0.01231, allocations: 0.6092 MB / 256.2 MB, free: 1.961 MB / 234.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.708e-05/0.01236, allocations: 12.03 kB / 256.2 MB, free: 1.949 MB / 234.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001736/0.01253, allocations: 52.7 kB / 256.2 MB, free: 1.898 MB / 234.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000552/0.01308, allocations: 245.1 kB / 256.5 MB, free: 1.629 MB / 234.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.01e-05/0.01311, allocations: 20.88 kB / 256.5 MB, free: 1.609 MB / 234.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.171e-05/0.01316, allocations: 24.38 kB / 256.5 MB, free: 1.586 MB / 234.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008157/0.01398, allocations: 280.6 kB / 256.8 MB, free: 1.305 MB / 234.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.058e-05/0.01399, allocations: 192 / 256.8 MB, free: 1.305 MB / 234.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.439e-05/0.01402, allocations: 16.36 kB / 256.8 MB, free: 1.289 MB / 234.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.643e-05/0.01404, allocations: 11.94 kB / 256.8 MB, free: 1.277 MB / 234.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009012/0.01494, allocations: 269.8 kB / 257.1 MB, free: 1.012 MB / 234.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002096/0.01704, allocations: 0.9055 MB / 258 MB, free: 44 kB / 234.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009086/0.01795, allocations: 214.5 kB / 258.2 MB, free: 15.82 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003448/0.01829, allocations: 88.8 kB / 258.3 MB, free: 15.73 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.168e-05/0.01832, allocations: 0 / 258.3 MB, free: 15.73 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005408/0.01886, allocations: 168.9 kB / 258.4 MB, free: 15.55 MB / 250.7 MB Notification: Performance of pre-optimization done (n=11): time 1.483e-06/0.01887, allocations: 4 kB / 258.4 MB, free: 15.55 MB / 250.7 MB Notification: Performance of matching and sorting (n=11): time 0.001484/0.02035, allocations: 330.5 kB / 258.8 MB, free: 15.21 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.702e-05/0.02043, allocations: 85.05 kB / 258.9 MB, free: 15.11 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000423/0.02085, allocations: 297.7 kB / 259.1 MB, free: 14.81 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 3.53e-05/0.02088, allocations: 25.7 kB / 259.2 MB, free: 14.78 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000212/0.0211, allocations: 207.9 kB / 259.4 MB, free: 14.57 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.918e-05/0.02115, allocations: 39.72 kB / 259.4 MB, free: 14.54 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001349/0.02128, allocations: 57.88 kB / 259.5 MB, free: 14.47 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0002065/0.02149, allocations: 334.8 kB / 259.8 MB, free: 14.14 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004288/0.02192, allocations: 139.2 kB / 259.9 MB, free: 13.99 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005115/0.02243, allocations: 227.8 kB / 260.2 MB, free: 13.71 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008373/0.02326, allocations: 331.1 kB / 260.5 MB, free: 13.34 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.216e-06/0.02327, allocations: 0 / 260.5 MB, free: 13.34 MB / 250.7 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.001161/0.02443, allocations: 441.6 kB / 260.9 MB, free: 12.88 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0003332/0.02476, allocations: 37.7 kB / 260.9 MB, free: 12.84 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.157e-05/0.02477, allocations: 4 kB / 260.9 MB, free: 12.84 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003795/0.02515, allocations: 56.88 kB / 261 MB, free: 12.78 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003083/0.02546, allocations: 63.89 kB / 261.1 MB, free: 12.71 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001412/0.02687, allocations: 1.272 MB / 262.3 MB, free: 11.34 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003832/0.02726, allocations: 51.97 kB / 262.4 MB, free: 11.29 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.3e-05/0.0273, allocations: 12 kB / 262.4 MB, free: 11.27 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.000461/0.02776, allocations: 218 kB / 262.6 MB, free: 11.05 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0004252/0.02819, allocations: 215.8 kB / 262.8 MB, free: 10.79 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0006558/0.02884, allocations: 299.2 kB / 263.1 MB, free: 10.44 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 4.688e-06/0.02885, allocations: 4 kB / 263.1 MB, free: 10.43 MB / 250.7 MB Notification: Performance of matching and sorting (n=29) (initialization_lambda0): time 0.0009421/0.02979, allocations: 408.1 kB / 263.5 MB, free: 10.02 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.616e-05/0.02982, allocations: 29.7 kB / 263.5 MB, free: 9.98 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.279e-06/0.02983, allocations: 4 kB / 263.5 MB, free: 9.977 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000321/0.03015, allocations: 57.19 kB / 263.6 MB, free: 9.918 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002278/0.03038, allocations: 51.91 kB / 263.7 MB, free: 9.867 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001282/0.03166, allocations: 1.276 MB / 264.9 MB, free: 8.492 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002911/0.03195, allocations: 35.86 kB / 265 MB, free: 8.457 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.393e-05/0.03197, allocations: 15.94 kB / 265 MB, free: 8.441 MB / 250.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * 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.0002073/0.03218, allocations: 192.2 kB / 265.2 MB, free: 8.246 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.567e-05/0.03224, allocations: 27.86 kB / 265.2 MB, free: 8.219 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.15e-05/0.0323, allocations: 25.77 kB / 265.2 MB, free: 8.191 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.626e-06/0.03231, allocations: 11.92 kB / 265.2 MB, free: 8.18 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.487e-06/0.03231, allocations: 0 / 265.2 MB, free: 8.18 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.106e-06/0.03231, allocations: 4.062 kB / 265.2 MB, free: 8.176 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005248/0.03284, allocations: 355 kB / 265.6 MB, free: 7.789 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.168e-06/0.03284, allocations: 4 kB / 265.6 MB, free: 7.785 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002052/0.03305, allocations: 31.95 kB / 265.6 MB, free: 7.754 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002339/0.03328, allocations: 48.8 kB / 265.7 MB, free: 7.703 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.513e-05/0.0333, allocations: 0 / 265.7 MB, free: 7.703 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001327/0.03462, allocations: 1.272 MB / 266.9 MB, free: 6.332 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.603e-06/0.03463, allocations: 0 / 266.9 MB, free: 6.332 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008782/0.0355, allocations: 286.5 kB / 267.2 MB, free: 6.027 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.355e-05/0.03556, allocations: 23.84 kB / 267.2 MB, free: 6.004 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.607e-05/0.03559, allocations: 4 kB / 267.2 MB, free: 6 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002334/0.03583, allocations: 31.91 kB / 267.3 MB, free: 5.969 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00012/0.03595, allocations: 19.91 kB / 267.3 MB, free: 5.949 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.916e-05/0.03597, allocations: 8 kB / 267.3 MB, free: 5.941 MB / 250.7 MB Notification: Performance of sorting global known variables: time 0.0002785/0.03624, allocations: 201.2 kB / 267.5 MB, free: 5.746 MB / 250.7 MB Notification: Performance of sort global known variables: time 6e-08/0.03624, allocations: 0 / 267.5 MB, free: 5.746 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0006889/0.03693, allocations: 131.7 kB / 267.6 MB, free: 5.617 MB / 250.7 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 (10): * Single equations (assignments): 7 * 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.0002256/0.03716, allocations: 99.22 kB / 267.7 MB, free: 5.508 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.001894/0.03905, allocations: 0.7609 MB / 268.5 MB, free: 4.688 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 2.805e-06/0.03906, allocations: 0 / 268.5 MB, free: 4.688 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005215/0.03958, allocations: 219.2 kB / 268.7 MB, free: 4.461 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003623/0.03994, allocations: 44.42 kB / 268.7 MB, free: 4.418 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00112/0.04106, allocations: 486 kB / 269.2 MB, free: 3.914 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001695/0.04123, allocations: 155.2 kB / 269.4 MB, free: 3.746 MB / 250.7 MB Notification: Performance of simCode: alias equations: time 0.0001546/0.04138, allocations: 34.28 kB / 269.4 MB, free: 3.707 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.102e-05/0.04148, allocations: 28.48 kB / 269.4 MB, free: 3.68 MB / 250.7 MB Notification: Performance of SimCode: time 7.01e-07/0.04148, allocations: 0 / 269.4 MB, free: 3.68 MB / 250.7 MB Notification: Performance of Templates: time 0.009359/0.05084, allocations: 3.698 MB / 273.1 MB, free: 20 kB / 250.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.makefile [Timeout 660] (rm -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.sim & ./Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OpAmps.Comparator -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OpAmps.Comparator_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Analog/Examples/OpAmps/Comparator/Comparator.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_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.490431117010303]