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.001278/0.001278, allocations: 69.8 kB / 21.24 MB, free: 0.5547 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.0014/0.0014, allocations: 163 kB / 24.5 MB, free: 3.711 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.44/1.44, allocations: 177.2 MB / 204.9 MB, free: 8.996 MB / 190.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.001588/0.001588, allocations: 51.42 kB / 325.6 MB, free: 252 kB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09659/0.09817, allocations: 53.34 MB / 378.9 MB, free: 15.61 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.Comparator): time 0.004821/0.103, allocations: 2.706 MB / 381.6 MB, free: 12.9 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001618/0.1046, allocations: 0.7051 MB / 382.4 MB, free: 12.19 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002584/0.1049, allocations: 8 kB / 382.4 MB, free: 12.18 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002118/0.1051, allocations: 51.44 kB / 382.4 MB, free: 12.13 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003095/0.1054, allocations: 103.2 kB / 382.5 MB, free: 12.03 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003529/0.1057, allocations: 111.8 kB / 382.6 MB, free: 11.92 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005388/0.1063, allocations: 394.5 kB / 383 MB, free: 11.53 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002272/0.1065, allocations: 92.42 kB / 383.1 MB, free: 11.44 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002561/0.1068, allocations: 155.4 kB / 383.2 MB, free: 11.29 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002759/0.107, allocations: 151.2 kB / 383.4 MB, free: 11.14 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 7.228e-05/0.1071, allocations: 36 kB / 383.4 MB, free: 11.11 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.766e-05/0.1072, allocations: 36 kB / 383.5 MB, free: 11.07 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 8.496e-05/0.1073, allocations: 75.75 kB / 383.5 MB, free: 11 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001918/0.1075, allocations: 151.3 kB / 383.7 MB, free: 10.85 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005281/0.108, allocations: 402.4 kB / 384.1 MB, free: 10.45 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.621e-06/0.108, allocations: 0 / 384.1 MB, free: 10.45 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.372e-06/0.108, allocations: 0 / 384.1 MB, free: 10.45 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.634e-05/0.108, allocations: 0 / 384.1 MB, free: 10.45 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.001503/0.1095, allocations: 0.6169 MB / 384.7 MB, free: 9.797 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.378e-05/0.1096, allocations: 8.031 kB / 384.7 MB, free: 9.789 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.333e-05/0.1097, allocations: 40.7 kB / 384.7 MB, free: 9.75 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004484/0.1101, allocations: 226 kB / 385 MB, free: 9.504 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.77e-05/0.1101, allocations: 20.88 kB / 385 MB, free: 9.484 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.67e-05/0.1102, allocations: 24.38 kB / 385 MB, free: 9.461 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007575/0.1109, allocations: 326.9 kB / 385.3 MB, free: 9.129 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.402e-05/0.1109, allocations: 0 / 385.3 MB, free: 9.129 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.469e-05/0.111, allocations: 12 kB / 385.3 MB, free: 9.117 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.196e-06/0.111, allocations: 4 kB / 385.3 MB, free: 9.113 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008734/0.1119, allocations: 277.8 kB / 385.6 MB, free: 8.84 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001852/0.1137, allocations: 0.9682 MB / 386.6 MB, free: 7.801 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008601/0.1146, allocations: 206.5 kB / 386.8 MB, free: 7.59 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00033/0.1149, allocations: 84.78 kB / 386.9 MB, free: 7.504 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.913e-05/0.1149, allocations: 4 kB / 386.9 MB, free: 7.5 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004549/0.1154, allocations: 161.1 kB / 387 MB, free: 7.324 MB / 350.1 MB Notification: Performance of pre-optimization done (n=10): time 1.473e-06/0.1154, allocations: 0 / 387 MB, free: 7.324 MB / 350.1 MB Notification: Performance of matching and sorting (n=10): time 0.001304/0.1167, allocations: 330.1 kB / 387.4 MB, free: 6.992 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.894e-05/0.1168, allocations: 81.14 kB / 387.4 MB, free: 6.895 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003416/0.1171, allocations: 293.8 kB / 387.7 MB, free: 6.602 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.583e-05/0.1171, allocations: 33.62 kB / 387.7 MB, free: 6.562 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001627/0.1173, allocations: 215.9 kB / 388 MB, free: 6.348 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.773e-05/0.1173, allocations: 35.69 kB / 388 MB, free: 6.312 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001007/0.1174, allocations: 53.92 kB / 388 MB, free: 6.25 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001542/0.1176, allocations: 334.8 kB / 388.4 MB, free: 5.914 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003928/0.118, allocations: 125.9 kB / 388.5 MB, free: 5.785 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004762/0.1184, allocations: 245.6 kB / 388.7 MB, free: 5.488 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008011/0.1192, allocations: 335.9 kB / 389.1 MB, free: 5.102 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.467e-06/0.1192, allocations: 0 / 389.1 MB, free: 5.102 MB / 350.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.001073/0.1203, allocations: 433.5 kB / 389.5 MB, free: 4.66 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.236e-05/0.1204, allocations: 33.77 kB / 389.5 MB, free: 4.621 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.02e-05/0.1204, allocations: 4 kB / 389.5 MB, free: 4.617 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001796/0.1206, allocations: 36.83 kB / 389.6 MB, free: 4.578 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002928/0.1208, allocations: 63.89 kB / 389.6 MB, free: 4.516 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001168/0.122, allocations: 1.272 MB / 390.9 MB, free: 3.145 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003439/0.1224, allocations: 47.81 kB / 390.9 MB, free: 3.098 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.033e-05/0.1224, allocations: 19.94 kB / 391 MB, free: 3.078 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.0001603/0.1226, allocations: 149.7 kB / 391.1 MB, free: 2.922 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.323e-05/0.1226, allocations: 27.94 kB / 391.1 MB, free: 2.895 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.34e-05/0.1226, allocations: 21.78 kB / 391.2 MB, free: 2.863 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.687e-06/0.1227, allocations: 4 kB / 391.2 MB, free: 2.859 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.538e-06/0.1227, allocations: 7.922 kB / 391.2 MB, free: 2.852 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.026e-06/0.1227, allocations: 0 / 391.2 MB, free: 2.852 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004275/0.1231, allocations: 351 kB / 391.5 MB, free: 2.469 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.767e-06/0.1231, allocations: 4 kB / 391.5 MB, free: 2.465 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001879/0.1233, allocations: 31.95 kB / 391.5 MB, free: 2.434 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001063/0.1234, allocations: 28.88 kB / 391.6 MB, free: 2.402 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.565e-05/0.1234, allocations: 4 kB / 391.6 MB, free: 2.398 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001076/0.1245, allocations: 1.268 MB / 392.8 MB, free: 1.031 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.332e-06/0.1245, allocations: 0 / 392.8 MB, free: 1.031 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008174/0.1253, allocations: 278.8 kB / 393.1 MB, free: 0.7344 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.736e-05/0.1254, allocations: 31.78 kB / 393.2 MB, free: 0.7031 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.145e-05/0.1254, allocations: 0 / 393.2 MB, free: 0.7031 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002371/0.1256, allocations: 31.97 kB / 393.2 MB, free: 0.6719 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.174e-05/0.1257, allocations: 15.97 kB / 393.2 MB, free: 0.6562 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.351e-05/0.1257, allocations: 4 kB / 393.2 MB, free: 0.6523 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002182/0.1259, allocations: 201.2 kB / 393.4 MB, free: 468 kB / 350.1 MB Notification: Performance of sort global known variables: time 8.1e-08/0.1259, allocations: 0 / 393.4 MB, free: 468 kB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003632/0.1263, allocations: 71.84 kB / 393.5 MB, free: 396 kB / 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.000121/0.1264, allocations: 102.4 kB / 393.6 MB, free: 284 kB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001078/0.1275, allocations: 440.3 kB / 394 MB, free: 15.82 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.304e-06/0.1275, allocations: 0 / 394 MB, free: 15.82 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005117/0.128, allocations: 210.5 kB / 394.2 MB, free: 15.6 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003141/0.1283, allocations: 47.39 kB / 394.2 MB, free: 15.55 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001108/0.1294, allocations: 489.4 kB / 394.7 MB, free: 15.05 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001959/0.1296, allocations: 146.9 kB / 394.9 MB, free: 14.89 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001176/0.1297, allocations: 30.28 kB / 394.9 MB, free: 14.86 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.807e-05/0.1298, allocations: 28.44 kB / 394.9 MB, free: 14.83 MB / 366.1 MB Notification: Performance of SimCode: time 4.2e-07/0.1298, allocations: 4 kB / 394.9 MB, free: 14.82 MB / 366.1 MB Notification: Performance of Templates: time 0.007792/0.1376, allocations: 3.242 MB / 398.2 MB, free: 11.62 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 -s ida -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: 4.330144235049374]