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.001228/0.001228, allocations: 100.3 kB / 16.96 MB, free: 6.098 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.001985/0.001985, allocations: 179 kB / 17.84 MB, free: 5.723 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.838/1.838, allocations: 205.4 MB / 224 MB, free: 13.14 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.0004923/0.0004923, allocations: 12 kB / 280.8 MB, free: 3.719 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1324/0.1329, allocations: 47.58 MB / 328.4 MB, free: 4.066 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.Comparator): time 0.003439/0.1364, allocations: 2.415 MB / 330.8 MB, free: 1.633 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001749/0.1382, allocations: 0.7024 MB / 331.5 MB, free: 0.9219 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002005/0.1385, allocations: 4 kB / 331.5 MB, free: 0.918 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002342/0.1387, allocations: 43.69 kB / 331.5 MB, free: 0.875 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002286/0.1389, allocations: 75.39 kB / 331.6 MB, free: 0.8008 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003899/0.1393, allocations: 75.91 kB / 331.7 MB, free: 0.7266 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004844/0.1398, allocations: 362.4 kB / 332 MB, free: 380 kB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002849/0.1401, allocations: 94.33 kB / 332.1 MB, free: 288 kB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001927/0.1403, allocations: 127.5 kB / 332.3 MB, free: 160 kB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002303/0.1406, allocations: 143.4 kB / 332.4 MB, free: 16 kB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 6.409e-05/0.1407, allocations: 16 kB / 332.4 MB, free: 0 / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.204e-05/0.1407, allocations: 20.05 kB / 332.4 MB, free: 15.98 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 9.51e-05/0.1408, allocations: 63.69 kB / 332.5 MB, free: 15.92 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001221/0.141, allocations: 77.52 kB / 332.6 MB, free: 15.84 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003912/0.1414, allocations: 295.4 kB / 332.9 MB, free: 15.55 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.299e-05/0.1414, allocations: 4 kB / 332.9 MB, free: 15.54 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.623e-06/0.1414, allocations: 0 / 332.9 MB, free: 15.54 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.003e-05/0.1414, allocations: 0 / 332.9 MB, free: 15.54 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.001508/0.1429, allocations: 0.6535 MB / 333.5 MB, free: 14.83 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.852e-05/0.143, allocations: 12.03 kB / 333.5 MB, free: 14.82 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.422e-05/0.1431, allocations: 31.62 kB / 333.6 MB, free: 14.79 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004311/0.1435, allocations: 294.3 kB / 333.8 MB, free: 14.46 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.375e-05/0.1436, allocations: 20.56 kB / 333.9 MB, free: 14.44 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.46e-05/0.1436, allocations: 20 kB / 333.9 MB, free: 14.42 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007005/0.1443, allocations: 304.8 kB / 334.2 MB, free: 14.11 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.138e-05/0.1444, allocations: 0 / 334.2 MB, free: 14.11 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.006e-05/0.1444, allocations: 4 kB / 334.2 MB, free: 14.11 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.155e-05/0.1444, allocations: 8 kB / 334.2 MB, free: 14.1 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007972/0.1452, allocations: 330 kB / 334.5 MB, free: 13.78 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001711/0.1469, allocations: 1.075 MB / 335.6 MB, free: 12.62 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006912/0.1476, allocations: 238.5 kB / 335.8 MB, free: 12.38 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002597/0.1479, allocations: 96.8 kB / 335.9 MB, free: 12.28 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.994e-05/0.148, allocations: 0 / 335.9 MB, free: 12.28 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000465/0.1484, allocations: 176.9 kB / 336.1 MB, free: 12.09 MB / 286.1 MB Notification: Performance of pre-optimization done (n=11): time 1.903e-06/0.1484, allocations: 7.938 kB / 336.1 MB, free: 12.08 MB / 286.1 MB Notification: Performance of matching and sorting (n=11): time 0.001304/0.1498, allocations: 443.2 kB / 336.5 MB, free: 11.62 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.409e-05/0.1498, allocations: 81.11 kB / 336.6 MB, free: 11.52 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003701/0.1502, allocations: 316.5 kB / 336.9 MB, free: 11.2 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 2.821e-05/0.1503, allocations: 29.7 kB / 336.9 MB, free: 11.17 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001569/0.1504, allocations: 215.5 kB / 337.2 MB, free: 10.95 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.658e-05/0.1505, allocations: 31.47 kB / 337.2 MB, free: 10.92 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.608e-05/0.1505, allocations: 8 kB / 337.2 MB, free: 10.91 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.000151/0.1506, allocations: 338.8 kB / 337.5 MB, free: 10.57 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003005/0.151, allocations: 112.2 kB / 337.6 MB, free: 10.46 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003485/0.1513, allocations: 210.1 kB / 337.8 MB, free: 10.21 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003285/0.1517, allocations: 161.6 kB / 338 MB, free: 10.05 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.135e-06/0.1517, allocations: 0 / 338 MB, free: 10.05 MB / 286.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0008344/0.1525, allocations: 415.8 kB / 338.4 MB, free: 9.625 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001469/0.1527, allocations: 219.6 kB / 338.6 MB, free: 9.352 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.494e-06/0.1527, allocations: 4 kB / 338.6 MB, free: 9.348 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001854/0.1529, allocations: 36.84 kB / 338.7 MB, free: 9.309 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002497/0.1531, allocations: 67.88 kB / 338.7 MB, free: 9.242 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001251/0.1544, allocations: 1.3 MB / 340 MB, free: 7.812 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003201/0.1547, allocations: 59.81 kB / 340.1 MB, free: 7.754 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.038e-05/0.1548, allocations: 19.98 kB / 340.1 MB, free: 7.734 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.499e-06/0.1548, allocations: 0 / 340.1 MB, free: 7.734 MB / 286.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0007168/0.1555, allocations: 354.3 kB / 340.4 MB, free: 7.379 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.5e-06/0.1555, allocations: 4 kB / 340.5 MB, free: 7.375 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 6.804e-05/0.1556, allocations: 24.84 kB / 340.5 MB, free: 7.348 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002102/0.1558, allocations: 63.89 kB / 340.5 MB, free: 7.285 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009368/0.1568, allocations: 1.288 MB / 341.8 MB, free: 5.863 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002576/0.157, allocations: 51.91 kB / 341.9 MB, free: 5.812 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.993e-05/0.1571, allocations: 12 kB / 341.9 MB, free: 5.801 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 ($whenCondition1,$PRE.vIn.signalSource.T_start,vIn.signalSource.T_start,$PRE.vIn.signalSource.count,vIn.signalSource.count) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002001/0.1573, allocations: 221 kB / 342.1 MB, free: 5.574 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.887e-05/0.1573, allocations: 35.52 kB / 342.1 MB, free: 5.539 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.051e-05/0.1574, allocations: 29.89 kB / 342.2 MB, free: 5.508 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.793e-06/0.1574, allocations: 4 kB / 342.2 MB, free: 5.504 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.667e-06/0.1574, allocations: 4.375 kB / 342.2 MB, free: 5.5 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.447e-06/0.1574, allocations: 0 / 342.2 MB, free: 5.5 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004387/0.1578, allocations: 451.2 kB / 342.6 MB, free: 5 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.794e-06/0.1579, allocations: 0 / 342.6 MB, free: 5 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001571/0.158, allocations: 51.88 kB / 342.7 MB, free: 4.949 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.76e-05/0.1581, allocations: 24.84 kB / 342.7 MB, free: 4.922 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.667e-05/0.1582, allocations: 3.984 kB / 342.7 MB, free: 4.918 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008878/0.159, allocations: 1.304 MB / 344 MB, free: 3.48 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.272e-06/0.1591, allocations: 0 / 344 MB, free: 3.48 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006362/0.1597, allocations: 298.4 kB / 344.3 MB, free: 3.164 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.099e-05/0.1598, allocations: 100.8 kB / 344.4 MB, free: 3.047 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.839e-05/0.1598, allocations: 7.984 kB / 344.4 MB, free: 3.039 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001933/0.16, allocations: 31.97 kB / 344.4 MB, free: 3.008 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.261e-05/0.1601, allocations: 19.92 kB / 344.4 MB, free: 2.988 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.272e-05/0.1601, allocations: 11.92 kB / 344.5 MB, free: 2.977 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.000235/0.1604, allocations: 227.1 kB / 344.7 MB, free: 2.758 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.1604, allocations: 0 / 344.7 MB, free: 2.758 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0005522/0.1609, allocations: 127.6 kB / 344.8 MB, free: 2.633 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002339/0.1612, allocations: 107.2 kB / 344.9 MB, free: 2.52 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.001577/0.1628, allocations: 0.724 MB / 345.6 MB, free: 1.746 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 3.727e-06/0.1628, allocations: 0 / 345.6 MB, free: 1.746 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004325/0.1632, allocations: 226.7 kB / 345.9 MB, free: 1.512 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000386/0.1636, allocations: 53.48 kB / 345.9 MB, free: 1.461 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001053/0.1647, allocations: 0.5543 MB / 346.5 MB, free: 0.8789 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003398/0.165, allocations: 0.7562 MB / 347.2 MB, free: 96 kB / 286.1 MB Notification: Performance of simCode: alias equations: time 0.0001795/0.1652, allocations: 42.95 kB / 347.3 MB, free: 52 kB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.291e-05/0.1653, allocations: 27.31 kB / 347.3 MB, free: 24 kB / 286.1 MB Notification: Performance of SimCode: time 6.11e-07/0.1653, allocations: 0 / 347.3 MB, free: 24 kB / 286.1 MB Notification: Performance of Templates: time 0.00796/0.1733, allocations: 3.242 MB / 350.5 MB, free: 12.79 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