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.00159/0.00159, allocations: 112.4 kB / 17.28 MB, free: 6.219 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.001711/0.001711, allocations: 185.3 kB / 18.2 MB, free: 5.301 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.793/1.793, allocations: 205.1 MB / 224.1 MB, free: 12.45 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.001385/0.001386, allocations: 51.92 kB / 280.2 MB, free: 3.492 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1068/0.1082, allocations: 46.62 MB / 326.8 MB, free: 4.801 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.Comparator): time 0.004393/0.1126, allocations: 2.904 MB / 329.7 MB, free: 1.871 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001601/0.1143, allocations: 0.7333 MB / 330.4 MB, free: 1.129 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003402/0.1146, allocations: 8 kB / 330.4 MB, free: 1.121 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002631/0.1149, allocations: 35.69 kB / 330.5 MB, free: 1.086 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003843/0.1153, allocations: 83.33 kB / 330.5 MB, free: 1.004 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004187/0.1158, allocations: 91.91 kB / 330.6 MB, free: 0.9141 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006628/0.1164, allocations: 402.4 kB / 331 MB, free: 0.5195 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002789/0.1167, allocations: 131.9 kB / 331.2 MB, free: 400 kB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000238/0.117, allocations: 147.5 kB / 331.3 MB, free: 252 kB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002615/0.1172, allocations: 171.2 kB / 331.5 MB, free: 80 kB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 6.362e-05/0.1173, allocations: 36 kB / 331.5 MB, free: 44 kB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.77e-05/0.1174, allocations: 40 kB / 331.5 MB, free: 4 kB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001154/0.1175, allocations: 79.77 kB / 331.6 MB, free: 15.92 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001831/0.1177, allocations: 171.1 kB / 331.8 MB, free: 15.75 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004389/0.1181, allocations: 398.8 kB / 332.2 MB, free: 15.37 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.891e-06/0.1181, allocations: 0 / 332.2 MB, free: 15.37 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.234e-06/0.1182, allocations: 0 / 332.2 MB, free: 15.37 MB / 286.1 MB Notification: Performance of Transformations before backend: time 9.037e-06/0.1182, allocations: 4 kB / 332.2 MB, free: 15.36 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.001517/0.1197, allocations: 0.6847 MB / 332.9 MB, free: 14.62 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.599e-05/0.1198, allocations: 8.031 kB / 332.9 MB, free: 14.62 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.642e-05/0.1199, allocations: 36.56 kB / 332.9 MB, free: 14.58 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004516/0.1203, allocations: 287.6 kB / 333.2 MB, free: 14.26 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.838e-05/0.1203, allocations: 16.94 kB / 333.2 MB, free: 14.25 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.664e-05/0.1204, allocations: 24.38 kB / 333.2 MB, free: 14.22 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007335/0.1211, allocations: 293.1 kB / 333.5 MB, free: 13.93 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.579e-05/0.1212, allocations: 0 / 333.5 MB, free: 13.93 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.221e-05/0.1212, allocations: 12 kB / 333.5 MB, free: 13.92 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.002e-05/0.1212, allocations: 4 kB / 333.5 MB, free: 13.91 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008159/0.122, allocations: 290 kB / 333.8 MB, free: 13.63 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001792/0.1239, allocations: 1.052 MB / 334.9 MB, free: 12.5 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006615/0.1245, allocations: 206.5 kB / 335.1 MB, free: 12.29 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002566/0.1248, allocations: 80.8 kB / 335.1 MB, free: 12.2 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.742e-05/0.1248, allocations: 3.984 kB / 335.2 MB, free: 12.2 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004584/0.1253, allocations: 153 kB / 335.3 MB, free: 12.03 MB / 286.1 MB Notification: Performance of pre-optimization done (n=11): time 1.262e-06/0.1253, allocations: 4 kB / 335.3 MB, free: 12.03 MB / 286.1 MB Notification: Performance of matching and sorting (n=11): time 0.00114/0.1265, allocations: 395.1 kB / 335.7 MB, free: 11.61 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.825e-05/0.1265, allocations: 89.05 kB / 335.8 MB, free: 11.51 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000371/0.1269, allocations: 320.5 kB / 336.1 MB, free: 11.18 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 3.083e-05/0.127, allocations: 29.7 kB / 336.1 MB, free: 11.14 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001921/0.1272, allocations: 207.5 kB / 336.3 MB, free: 10.94 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.778e-05/0.1272, allocations: 31.55 kB / 336.4 MB, free: 10.91 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.663e-05/0.1273, allocations: 57.83 kB / 336.4 MB, free: 10.84 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0002778/0.1277, allocations: 338.8 kB / 336.7 MB, free: 10.5 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003038/0.128, allocations: 101.5 kB / 336.8 MB, free: 10.4 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003619/0.1284, allocations: 198.1 kB / 337 MB, free: 10.16 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008016/0.1292, allocations: 315.1 kB / 337.3 MB, free: 9.797 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.394e-06/0.1292, allocations: 7.984 kB / 337.3 MB, free: 9.789 MB / 286.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0008446/0.13, allocations: 383.7 kB / 337.7 MB, free: 9.398 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.995e-05/0.1301, allocations: 33.7 kB / 337.8 MB, free: 9.359 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.318e-06/0.1301, allocations: 4 kB / 337.8 MB, free: 9.355 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002075/0.1303, allocations: 40.92 kB / 337.8 MB, free: 9.312 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000244/0.1306, allocations: 59.89 kB / 337.9 MB, free: 9.254 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00129/0.1319, allocations: 1.402 MB / 339.3 MB, free: 7.715 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003385/0.1322, allocations: 55.53 kB / 339.3 MB, free: 7.66 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.439e-05/0.1323, allocations: 8 kB / 339.3 MB, free: 7.652 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0003565/0.1326, allocations: 196.4 kB / 339.5 MB, free: 7.457 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0003205/0.1329, allocations: 186.4 kB / 339.7 MB, free: 7.227 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0005564/0.1335, allocations: 299.1 kB / 340 MB, free: 6.879 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 3.827e-06/0.1335, allocations: 4 kB / 340 MB, free: 6.875 MB / 286.1 MB Notification: Performance of matching and sorting (n=29) (initialization_lambda0): time 0.000754/0.1343, allocations: 351.4 kB / 340.3 MB, free: 6.516 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.081e-05/0.1343, allocations: 42.09 kB / 340.4 MB, free: 6.469 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.389e-06/0.1343, allocations: 8 kB / 340.4 MB, free: 6.461 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.89e-05/0.1344, allocations: 28.84 kB / 340.4 MB, free: 6.43 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002214/0.1347, allocations: 59.89 kB / 340.5 MB, free: 6.371 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001028/0.1357, allocations: 1.398 MB / 341.9 MB, free: 4.832 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002689/0.136, allocations: 35.98 kB / 341.9 MB, free: 4.797 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.583e-05/0.136, allocations: 15.98 kB / 341.9 MB, free: 4.781 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.0001549/0.1362, allocations: 204.1 kB / 342.1 MB, free: 4.574 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.209e-05/0.1362, allocations: 23.72 kB / 342.1 MB, free: 4.551 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.316e-05/0.1363, allocations: 26.27 kB / 342.2 MB, free: 4.523 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.154e-06/0.1363, allocations: 0 / 342.2 MB, free: 4.523 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.025e-06/0.1363, allocations: 0 / 342.2 MB, free: 4.523 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.12e-06/0.1363, allocations: 8 kB / 342.2 MB, free: 4.516 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005222/0.1369, allocations: 467 kB / 342.6 MB, free: 4 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.553e-06/0.1369, allocations: 0 / 342.6 MB, free: 4 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001466/0.137, allocations: 27.97 kB / 342.7 MB, free: 3.973 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.519e-05/0.1371, allocations: 32.86 kB / 342.7 MB, free: 3.938 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.784e-05/0.1372, allocations: 4 kB / 342.7 MB, free: 3.934 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009736/0.1381, allocations: 1.398 MB / 344.1 MB, free: 2.391 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.062e-06/0.1381, allocations: 0 / 344.1 MB, free: 2.391 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006233/0.1388, allocations: 262.4 kB / 344.4 MB, free: 2.109 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.78e-05/0.1389, allocations: 108.8 kB / 344.5 MB, free: 1.984 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.971e-05/0.1389, allocations: 4 kB / 344.5 MB, free: 1.98 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002007/0.1391, allocations: 23.97 kB / 344.5 MB, free: 1.957 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.736e-05/0.1392, allocations: 15.98 kB / 344.5 MB, free: 1.941 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.404e-05/0.1392, allocations: 7.984 kB / 344.5 MB, free: 1.934 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0002603/0.1395, allocations: 231.1 kB / 344.7 MB, free: 1.711 MB / 286.1 MB Notification: Performance of sort global known variables: time 3.3e-07/0.1395, allocations: 0 / 344.7 MB, free: 1.711 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0004941/0.14, allocations: 123.8 kB / 344.9 MB, free: 1.59 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.0001337/0.1401, allocations: 95.25 kB / 344.9 MB, free: 1.484 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.001474/0.1416, allocations: 0.7037 MB / 345.7 MB, free: 0.7305 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 3.377e-06/0.1416, allocations: 0 / 345.7 MB, free: 0.7305 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004219/0.1421, allocations: 211.3 kB / 345.9 MB, free: 0.5117 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003588/0.1424, allocations: 52.75 kB / 345.9 MB, free: 472 kB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009428/0.1434, allocations: 0.5635 MB / 346.5 MB, free: 15.87 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004409/0.1438, allocations: 0.756 MB / 347.2 MB, free: 15.09 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001703/0.144, allocations: 42.95 kB / 347.3 MB, free: 15.04 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.278e-05/0.1441, allocations: 23.44 kB / 347.3 MB, free: 15.02 MB / 302.1 MB Notification: Performance of SimCode: time 5.21e-07/0.1441, allocations: 0 / 347.3 MB, free: 15.02 MB / 302.1 MB Notification: Performance of Templates: time 0.00822/0.1523, allocations: 3.537 MB / 350.8 MB, free: 11.49 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 -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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Analog/Examples/OpAmps/Comparator/Comparator.csv","../files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches