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.001785/0.001785, allocations: 108.4 kB / 18.36 MB, free: 4.641 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.00182/0.001821, allocations: 191 kB / 19.29 MB, free: 3.715 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.62/1.62, allocations: 205.1 MB / 225.2 MB, free: 12.29 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.001814/0.001814, allocations: 43.94 kB / 282.1 MB, free: 2.488 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1109/0.1127, allocations: 46.63 MB / 328.7 MB, free: 3.785 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.Comparator): time 0.004451/0.1172, allocations: 2.858 MB / 331.6 MB, free: 0.9023 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001469/0.1188, allocations: 0.7371 MB / 332.3 MB, free: 160 kB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001711/0.1189, allocations: 4 kB / 332.3 MB, free: 156 kB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002019/0.1192, allocations: 55.45 kB / 332.4 MB, free: 100 kB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002002/0.1194, allocations: 99.17 kB / 332.5 MB, free: 0 / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003375/0.1197, allocations: 107.9 kB / 332.6 MB, free: 15.89 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004381/0.1202, allocations: 390.4 kB / 333 MB, free: 15.51 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000262/0.1205, allocations: 135.9 kB / 333.1 MB, free: 15.38 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001806/0.1207, allocations: 155.3 kB / 333.3 MB, free: 15.23 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002174/0.1209, allocations: 175.3 kB / 333.4 MB, free: 15.05 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 5.637e-05/0.1209, allocations: 36 kB / 333.5 MB, free: 15.02 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.329e-05/0.121, allocations: 40 kB / 333.5 MB, free: 14.98 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 7.871e-05/0.1211, allocations: 79.69 kB / 333.6 MB, free: 14.9 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001745/0.1213, allocations: 167.2 kB / 333.7 MB, free: 14.74 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004194/0.1217, allocations: 398.6 kB / 334.1 MB, free: 14.35 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.001e-06/0.1217, allocations: 0 / 334.1 MB, free: 14.35 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.793e-06/0.1217, allocations: 0 / 334.1 MB, free: 14.35 MB / 286.1 MB Notification: Performance of Transformations before backend: time 7.394e-06/0.1217, allocations: 0 / 334.1 MB, free: 14.35 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.00136/0.1231, allocations: 0.6885 MB / 334.8 MB, free: 13.61 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.384e-05/0.1231, allocations: 12.03 kB / 334.8 MB, free: 13.59 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.548e-05/0.1232, allocations: 32.56 kB / 334.9 MB, free: 13.56 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004669/0.1237, allocations: 295.6 kB / 335.2 MB, free: 13.23 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.826e-05/0.1237, allocations: 20.94 kB / 335.2 MB, free: 13.21 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.44e-05/0.1238, allocations: 24.38 kB / 335.2 MB, free: 13.19 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006508/0.1244, allocations: 293 kB / 335.5 MB, free: 12.9 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.184e-05/0.1245, allocations: 3.984 kB / 335.5 MB, free: 12.9 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.881e-05/0.1245, allocations: 12 kB / 335.5 MB, free: 12.89 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.215e-06/0.1245, allocations: 8 kB / 335.5 MB, free: 12.88 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007629/0.1253, allocations: 282 kB / 335.8 MB, free: 12.61 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001778/0.1271, allocations: 1.048 MB / 336.8 MB, free: 11.47 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006641/0.1278, allocations: 190.6 kB / 337 MB, free: 11.27 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003042/0.1281, allocations: 92.78 kB / 337.1 MB, free: 11.18 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.072e-05/0.1281, allocations: 0 / 337.1 MB, free: 11.18 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003797/0.1285, allocations: 149 kB / 337.3 MB, free: 11.02 MB / 286.1 MB Notification: Performance of pre-optimization done (n=11): time 1.583e-06/0.1285, allocations: 8 kB / 337.3 MB, free: 11.01 MB / 286.1 MB Notification: Performance of matching and sorting (n=11): time 0.001121/0.1296, allocations: 395 kB / 337.6 MB, free: 10.59 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.69e-05/0.1297, allocations: 81.11 kB / 337.7 MB, free: 10.5 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003981/0.1301, allocations: 328.4 kB / 338 MB, free: 10.16 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 2.461e-05/0.1302, allocations: 29.69 kB / 338.1 MB, free: 10.12 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001633/0.1303, allocations: 211.5 kB / 338.3 MB, free: 9.914 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.777e-05/0.1304, allocations: 35.55 kB / 338.3 MB, free: 9.879 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.858e-05/0.1305, allocations: 53.84 kB / 338.4 MB, free: 9.82 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001804/0.1307, allocations: 342.8 kB / 338.7 MB, free: 9.477 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003141/0.131, allocations: 101.5 kB / 338.8 MB, free: 9.375 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003875/0.1314, allocations: 198.1 kB / 339 MB, free: 9.133 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006683/0.1321, allocations: 315.1 kB / 339.3 MB, free: 8.77 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.554e-06/0.1321, allocations: 8 kB / 339.3 MB, free: 8.762 MB / 286.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0008943/0.133, allocations: 387.6 kB / 339.7 MB, free: 8.367 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.358e-05/0.133, allocations: 33.7 kB / 339.7 MB, free: 8.328 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.239e-05/0.1331, allocations: 4 kB / 339.7 MB, free: 8.324 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000237/0.1333, allocations: 37.02 kB / 339.8 MB, free: 8.285 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002645/0.1336, allocations: 59.89 kB / 339.8 MB, free: 8.227 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001456/0.135, allocations: 1.402 MB / 341.2 MB, free: 6.688 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000354/0.1354, allocations: 51.59 kB / 341.3 MB, free: 6.637 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.781e-05/0.1355, allocations: 12 kB / 341.3 MB, free: 6.625 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0003686/0.1358, allocations: 188.4 kB / 341.5 MB, free: 6.438 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0003413/0.1362, allocations: 190.1 kB / 341.7 MB, free: 6.203 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0005479/0.1367, allocations: 287.2 kB / 341.9 MB, free: 5.867 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 3.376e-06/0.1368, allocations: 4 kB / 341.9 MB, free: 5.863 MB / 286.1 MB Notification: Performance of matching and sorting (n=29) (initialization_lambda0): time 0.0007837/0.1375, allocations: 371.3 kB / 342.3 MB, free: 5.484 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.193e-05/0.1376, allocations: 33.7 kB / 342.3 MB, free: 5.445 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.823e-06/0.1376, allocations: 7.984 kB / 342.3 MB, free: 5.438 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001008/0.1377, allocations: 33.31 kB / 342.4 MB, free: 5.402 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002158/0.1379, allocations: 51.89 kB / 342.4 MB, free: 5.352 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001043/0.139, allocations: 1.394 MB / 343.8 MB, free: 3.816 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000286/0.1393, allocations: 35.81 kB / 343.9 MB, free: 3.781 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.223e-05/0.1393, allocations: 16 kB / 343.9 MB, free: 3.766 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.0001533/0.1395, allocations: 204.2 kB / 344.1 MB, free: 3.559 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.179e-05/0.1395, allocations: 31.7 kB / 344.1 MB, free: 3.527 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.724e-05/0.1396, allocations: 29.89 kB / 344.1 MB, free: 3.496 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.104e-06/0.1396, allocations: 0 / 344.1 MB, free: 3.496 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.102e-06/0.1396, allocations: 4 kB / 344.1 MB, free: 3.492 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.079e-06/0.1396, allocations: 384 / 344.1 MB, free: 3.492 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005848/0.1402, allocations: 463 kB / 344.6 MB, free: 2.98 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.128e-06/0.1402, allocations: 4 kB / 344.6 MB, free: 2.977 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001489/0.1404, allocations: 28 kB / 344.6 MB, free: 2.949 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.591e-05/0.1405, allocations: 28.78 kB / 344.6 MB, free: 2.918 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.177e-05/0.1405, allocations: 8 kB / 344.7 MB, free: 2.91 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00129/0.1418, allocations: 1.398 MB / 346.1 MB, free: 1.367 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.703e-06/0.1418, allocations: 0 / 346.1 MB, free: 1.367 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007172/0.1426, allocations: 262.5 kB / 346.3 MB, free: 1.086 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001057/0.1427, allocations: 104.8 kB / 346.4 MB, free: 0.9648 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.908e-05/0.1427, allocations: 7.984 kB / 346.4 MB, free: 0.957 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001977/0.1429, allocations: 19.97 kB / 346.4 MB, free: 0.9375 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.599e-05/0.143, allocations: 19.98 kB / 346.5 MB, free: 0.918 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.334e-05/0.143, allocations: 4 kB / 346.5 MB, free: 0.9141 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0002661/0.1433, allocations: 227.1 kB / 346.7 MB, free: 0.6953 MB / 286.1 MB Notification: Performance of sort global known variables: time 2.4e-07/0.1433, allocations: 0 / 346.7 MB, free: 0.6953 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0006021/0.1439, allocations: 123.8 kB / 346.8 MB, free: 0.5742 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.0002215/0.1442, allocations: 115.2 kB / 346.9 MB, free: 460 kB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.001617/0.1458, allocations: 0.6964 MB / 347.6 MB, free: 15.7 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.596e-06/0.1458, allocations: 0 / 347.6 MB, free: 15.7 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004843/0.1463, allocations: 214.9 kB / 347.8 MB, free: 15.48 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004057/0.1467, allocations: 52.69 kB / 347.9 MB, free: 15.43 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001211/0.1479, allocations: 477 kB / 348.3 MB, free: 14.94 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004383/0.1484, allocations: 0.7599 MB / 349.1 MB, free: 14.15 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001409/0.1485, allocations: 34.97 kB / 349.1 MB, free: 14.12 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.224e-05/0.1486, allocations: 31.42 kB / 349.2 MB, free: 14.09 MB / 302.1 MB Notification: Performance of SimCode: time 4.91e-07/0.1486, allocations: 0 / 349.2 MB, free: 14.09 MB / 302.1 MB Notification: Performance of Templates: time 0.008077/0.1567, allocations: 3.618 MB / 352.8 MB, free: 10.47 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 cvode -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