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.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) 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.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=2000,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=2000,variableFilter="time|opAmp.out.v|opAmp.out.i",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OpAmps.Comparator") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001155/0.001155, allocations: 108.4 kB / 18.34 MB, free: 4.699 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001218/0.001218, allocations: 190.9 kB / 19.28 MB, free: 3.766 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.58/1.58, allocations: 205.1 MB / 225.2 MB, free: 12.26 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001277/0.001278, allocations: 51.92 kB / 282.1 MB, free: 2.441 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.106/0.1073, allocations: 46.63 MB / 328.7 MB, free: 3.742 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.Comparator): time 0.004416/0.1118, allocations: 2.843 MB / 331.6 MB, free: 0.875 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001456/0.1133, allocations: 0.741 MB / 332.3 MB, free: 128 kB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001738/0.1135, allocations: 4 kB / 332.3 MB, free: 124 kB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001815/0.1137, allocations: 47.5 kB / 332.4 MB, free: 76 kB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002352/0.1139, allocations: 103.2 kB / 332.5 MB, free: 15.97 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003066/0.1143, allocations: 115.7 kB / 332.6 MB, free: 15.86 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004174/0.1147, allocations: 394.4 kB / 333 MB, free: 15.47 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002567/0.115, allocations: 139.9 kB / 333.1 MB, free: 15.34 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001814/0.1151, allocations: 143.5 kB / 333.2 MB, free: 15.2 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002095/0.1154, allocations: 175.2 kB / 333.4 MB, free: 15.02 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 5.71e-05/0.1154, allocations: 36 kB / 333.4 MB, free: 14.99 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.173e-05/0.1155, allocations: 36 kB / 333.5 MB, free: 14.95 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 8.404e-05/0.1156, allocations: 79.69 kB / 333.6 MB, free: 14.88 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000164/0.1158, allocations: 175.1 kB / 333.7 MB, free: 14.7 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004209/0.1162, allocations: 402.7 kB / 334.1 MB, free: 14.31 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.069e-06/0.1162, allocations: 0 / 334.1 MB, free: 14.31 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.894e-06/0.1162, allocations: 0 / 334.1 MB, free: 14.31 MB / 286.1 MB Notification: Performance of Transformations before backend: time 6.843e-06/0.1162, allocations: 0 / 334.1 MB, free: 14.31 MB / 286.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.001362/0.1176, allocations: 0.6808 MB / 334.8 MB, free: 13.57 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.051e-05/0.1176, allocations: 12.03 kB / 334.8 MB, free: 13.56 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.729e-05/0.1177, allocations: 32.56 kB / 334.9 MB, free: 13.53 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004367/0.1182, allocations: 295.5 kB / 335.1 MB, free: 13.2 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.287e-05/0.1182, allocations: 20.94 kB / 335.2 MB, free: 13.18 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.599e-05/0.1182, allocations: 28.38 kB / 335.2 MB, free: 13.16 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006563/0.1189, allocations: 285.1 kB / 335.5 MB, free: 12.88 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.205e-05/0.1189, allocations: 3.984 kB / 335.5 MB, free: 12.87 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.938e-05/0.119, allocations: 12 kB / 335.5 MB, free: 12.86 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.049e-05/0.119, allocations: 4 kB / 335.5 MB, free: 12.86 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008022/0.1198, allocations: 290 kB / 335.8 MB, free: 12.57 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001742/0.1215, allocations: 1.048 MB / 336.8 MB, free: 11.44 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006898/0.1222, allocations: 202.4 kB / 337 MB, free: 11.23 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002687/0.1225, allocations: 80.8 kB / 337.1 MB, free: 11.15 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.428e-05/0.1226, allocations: 7.984 kB / 337.1 MB, free: 11.14 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003995/0.123, allocations: 149 kB / 337.2 MB, free: 10.98 MB / 286.1 MB Notification: Performance of pre-optimization done (n=11): time 2.144e-06/0.123, allocations: 0 / 337.2 MB, free: 10.98 MB / 286.1 MB Notification: Performance of matching and sorting (n=11): time 0.001132/0.1241, allocations: 391.1 kB / 337.6 MB, free: 10.57 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.309e-05/0.1242, allocations: 85.14 kB / 337.7 MB, free: 10.46 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003767/0.1246, allocations: 324.5 kB / 338 MB, free: 10.13 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 2.68e-05/0.1246, allocations: 29.7 kB / 338.1 MB, free: 10.1 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001592/0.1248, allocations: 211.5 kB / 338.3 MB, free: 9.887 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.485e-05/0.1248, allocations: 35.53 kB / 338.3 MB, free: 9.852 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001019/0.1249, allocations: 53.84 kB / 338.4 MB, free: 9.793 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001471/0.1251, allocations: 334.8 kB / 338.7 MB, free: 9.457 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003474/0.1255, allocations: 109.5 kB / 338.8 MB, free: 9.348 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003635/0.1258, allocations: 202.1 kB / 339 MB, free: 9.102 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006265/0.1265, allocations: 311.1 kB / 339.3 MB, free: 8.742 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.042e-06/0.1265, allocations: 8 kB / 339.3 MB, free: 8.734 MB / 286.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0008905/0.1274, allocations: 383.8 kB / 339.7 MB, free: 8.344 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.437e-05/0.1274, allocations: 37.7 kB / 339.7 MB, free: 8.301 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.098e-05/0.1275, allocations: 4 kB / 339.7 MB, free: 8.297 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001888/0.1277, allocations: 28.78 kB / 339.7 MB, free: 8.266 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002731/0.1279, allocations: 67.88 kB / 339.8 MB, free: 8.199 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001151/0.1291, allocations: 1.402 MB / 341.2 MB, free: 6.66 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004148/0.1295, allocations: 55.53 kB / 341.3 MB, free: 6.605 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.386e-05/0.1296, allocations: 11.98 kB / 341.3 MB, free: 6.594 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0004053/0.13, allocations: 188.3 kB / 341.5 MB, free: 6.406 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.000344/0.1304, allocations: 182.2 kB / 341.6 MB, free: 6.18 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0005751/0.1309, allocations: 299.2 kB / 341.9 MB, free: 5.832 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 4.578e-06/0.131, allocations: 4 kB / 341.9 MB, free: 5.828 MB / 286.1 MB Notification: Performance of matching and sorting (n=29) (initialization_lambda0): time 0.0007893/0.1318, allocations: 363.7 kB / 342.3 MB, free: 5.457 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.102e-05/0.1318, allocations: 33.7 kB / 342.3 MB, free: 5.418 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.44e-06/0.1318, allocations: 4 kB / 342.3 MB, free: 5.414 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001194/0.1319, allocations: 33.2 kB / 342.4 MB, free: 5.379 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002221/0.1322, allocations: 60.06 kB / 342.4 MB, free: 5.32 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001079/0.1333, allocations: 1.398 MB / 343.8 MB, free: 3.781 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003056/0.1336, allocations: 35.81 kB / 343.8 MB, free: 3.746 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.907e-05/0.1336, allocations: 19.94 kB / 343.9 MB, free: 3.727 MB / 286.1 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.0001797/0.1338, allocations: 208.1 kB / 344.1 MB, free: 3.516 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.318e-05/0.1339, allocations: 23.81 kB / 344.1 MB, free: 3.492 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.204e-05/0.1339, allocations: 29.89 kB / 344.1 MB, free: 3.461 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.793e-06/0.1339, allocations: 0 / 344.1 MB, free: 3.461 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.878e-06/0.134, allocations: 7.984 kB / 344.1 MB, free: 3.453 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.911e-06/0.134, allocations: 4 kB / 344.1 MB, free: 3.449 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005101/0.1345, allocations: 451.1 kB / 344.6 MB, free: 2.949 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.984e-06/0.1345, allocations: 0 / 344.6 MB, free: 2.949 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001568/0.1347, allocations: 31.89 kB / 344.6 MB, free: 2.918 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001025/0.1348, allocations: 28.88 kB / 344.6 MB, free: 2.887 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.067e-05/0.1348, allocations: 4 kB / 344.6 MB, free: 2.883 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001012/0.1358, allocations: 1.398 MB / 346 MB, free: 1.34 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.963e-06/0.1358, allocations: 0 / 346 MB, free: 1.34 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006528/0.1365, allocations: 262.4 kB / 346.3 MB, free: 1.059 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.044e-05/0.1366, allocations: 108.8 kB / 346.4 MB, free: 0.9336 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.946e-05/0.1366, allocations: 4 kB / 346.4 MB, free: 0.9297 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002124/0.1369, allocations: 31.95 kB / 346.4 MB, free: 0.8984 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.119e-05/0.137, allocations: 19.92 kB / 346.5 MB, free: 0.8789 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.216e-05/0.137, allocations: 0 / 346.5 MB, free: 0.8789 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0002782/0.1373, allocations: 231.1 kB / 346.7 MB, free: 0.6562 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1373, allocations: 0 / 346.7 MB, free: 0.6562 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0005515/0.1378, allocations: 123.8 kB / 346.8 MB, free: 0.5352 MB / 286.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 (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.0001555/0.138, allocations: 103.2 kB / 346.9 MB, free: 432 kB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.001453/0.1395, allocations: 0.6999 MB / 347.6 MB, free: 15.67 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.396e-06/0.1395, allocations: 0 / 347.6 MB, free: 15.67 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004137/0.1399, allocations: 207.4 kB / 347.8 MB, free: 15.45 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003632/0.1403, allocations: 48.77 kB / 347.9 MB, free: 15.41 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001153/0.1414, allocations: 489 kB / 348.3 MB, free: 14.9 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003412/0.1418, allocations: 0.7599 MB / 349.1 MB, free: 14.12 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001574/0.142, allocations: 34.97 kB / 349.1 MB, free: 14.08 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.803e-05/0.142, allocations: 23.42 kB / 349.1 MB, free: 14.06 MB / 302.1 MB Notification: Performance of SimCode: time 3.6e-07/0.142, allocations: 3.828 kB / 349.1 MB, free: 14.06 MB / 302.1 MB Notification: Performance of Templates: time 0.008607/0.1507, allocations: 3.619 MB / 352.8 MB, free: 10.45 MB / 302.1 MB make -j1 -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.makefile (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 -s gbode -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OpAmps.Comparator_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Analog/Examples/OpAmps/Comparator/Comparator.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches