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.001042/0.001042, allocations: 98.3 kB / 18.4 MB, free: 4.66 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.001082/0.001082, allocations: 188.3 kB / 19.33 MB, free: 3.734 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.372/1.372, allocations: 205.1 MB / 225.2 MB, free: 12.2 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.001186/0.001186, allocations: 55.91 kB / 329.2 MB, free: 3.266 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0974/0.09859, allocations: 46.62 MB / 375.9 MB, free: 4.539 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.Comparator): time 0.00445/0.1031, allocations: 2.839 MB / 378.7 MB, free: 1.684 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001641/0.1048, allocations: 0.7407 MB / 379.4 MB, free: 0.9336 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002925/0.1051, allocations: 7.938 kB / 379.4 MB, free: 0.9258 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002223/0.1053, allocations: 55.5 kB / 379.5 MB, free: 0.8711 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002824/0.1056, allocations: 95.19 kB / 379.6 MB, free: 0.7773 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003619/0.106, allocations: 111.8 kB / 379.7 MB, free: 0.668 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004908/0.1065, allocations: 394.3 kB / 380.1 MB, free: 288 kB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000291/0.1068, allocations: 147.8 kB / 380.2 MB, free: 140 kB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.2072/0.314, allocations: 140.1 kB / 380.4 MB, free: 9.871 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003781/0.3144, allocations: 177.1 kB / 380.5 MB, free: 9.871 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001058/0.3145, allocations: 36.5 kB / 380.6 MB, free: 9.871 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.078e-05/0.3146, allocations: 37.12 kB / 380.6 MB, free: 9.871 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 7.261e-05/0.3146, allocations: 80.84 kB / 380.7 MB, free: 9.863 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001648/0.3148, allocations: 165.8 kB / 380.9 MB, free: 9.82 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004679/0.3153, allocations: 403 kB / 381.2 MB, free: 9.777 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.378e-06/0.3153, allocations: 0 / 381.2 MB, free: 9.777 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.673e-06/0.3153, allocations: 2.281 kB / 381.2 MB, free: 9.777 MB / 318.1 MB Notification: Performance of Transformations before backend: time 6.562e-06/0.3153, allocations: 0 / 381.2 MB, free: 9.777 MB / 318.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.001231/0.3165, allocations: 0.6843 MB / 381.9 MB, free: 9.297 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.729e-05/0.3166, allocations: 13.53 kB / 381.9 MB, free: 9.297 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.329e-05/0.3167, allocations: 33.06 kB / 382 MB, free: 9.281 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003518/0.317, allocations: 294 kB / 382.3 MB, free: 9.051 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.932e-05/0.3171, allocations: 19 kB / 382.3 MB, free: 9.051 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.55e-05/0.3171, allocations: 24.95 kB / 382.3 MB, free: 9.051 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006105/0.3177, allocations: 288.9 kB / 382.6 MB, free: 9.016 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.29e-05/0.3178, allocations: 3.938 kB / 382.6 MB, free: 9.012 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.912e-05/0.3178, allocations: 9.438 kB / 382.6 MB, free: 9.012 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.378e-06/0.3178, allocations: 6.875 kB / 382.6 MB, free: 9.012 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008009/0.3186, allocations: 284.4 kB / 382.9 MB, free: 9.012 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001716/0.3203, allocations: 1.045 MB / 383.9 MB, free: 8.527 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006743/0.321, allocations: 199.4 kB / 384.1 MB, free: 8.5 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002529/0.3213, allocations: 84.23 kB / 384.2 MB, free: 8.492 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.422e-05/0.3213, allocations: 1.906 kB / 384.2 MB, free: 8.492 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003622/0.3217, allocations: 153.4 kB / 384.4 MB, free: 8.426 MB / 318.1 MB Notification: Performance of pre-optimization done (n=11): time 1.513e-06/0.3217, allocations: 0 / 384.4 MB, free: 8.426 MB / 318.1 MB Notification: Performance of matching and sorting (n=11): time 0.001064/0.3228, allocations: 395.6 kB / 384.7 MB, free: 8.273 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.411e-05/0.3228, allocations: 80.92 kB / 384.8 MB, free: 8.18 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003125/0.3231, allocations: 333.9 kB / 385.2 MB, free: 8.059 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.796e-05/0.3231, allocations: 31.66 kB / 385.2 MB, free: 8.023 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.58e-05/0.3232, allocations: 202.8 kB / 385.4 MB, free: 7.895 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.684e-05/0.3233, allocations: 41.05 kB / 385.4 MB, free: 7.871 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.824e-05/0.3234, allocations: 50.3 kB / 385.5 MB, free: 7.855 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 5.498e-05/0.3234, allocations: 336.4 kB / 385.8 MB, free: 7.543 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003029/0.3237, allocations: 103.7 kB / 385.9 MB, free: 7.531 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003309/0.3241, allocations: 199.6 kB / 386.1 MB, free: 7.402 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005536/0.3246, allocations: 309.8 kB / 386.4 MB, free: 7.238 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.727e-06/0.3246, allocations: 1.594 kB / 386.4 MB, free: 7.238 MB / 318.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0007897/0.3254, allocations: 393.5 kB / 386.8 MB, free: 7.141 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.846e-05/0.3255, allocations: 42.55 kB / 386.8 MB, free: 7.102 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.955e-06/0.3255, allocations: 3.688 kB / 386.8 MB, free: 7.102 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001614/0.3257, allocations: 31.86 kB / 386.9 MB, free: 7.094 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000253/0.3259, allocations: 61.62 kB / 386.9 MB, free: 7.094 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000725/0.3267, allocations: 1.399 MB / 388.3 MB, free: 5.707 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000312/0.327, allocations: 59.22 kB / 388.4 MB, free: 5.68 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.574e-05/0.327, allocations: 19.92 kB / 388.4 MB, free: 5.672 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0003071/0.3273, allocations: 182 kB / 388.6 MB, free: 5.559 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0002725/0.3276, allocations: 189.3 kB / 388.8 MB, free: 5.398 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0004915/0.3281, allocations: 298.2 kB / 389.1 MB, free: 5.184 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.575e-06/0.3281, allocations: 1 kB / 389.1 MB, free: 5.184 MB / 318.1 MB Notification: Performance of matching and sorting (n=29) (initialization_lambda0): time 0.0007191/0.3289, allocations: 359.6 kB / 389.4 MB, free: 5.035 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.077e-05/0.3289, allocations: 39.14 kB / 389.4 MB, free: 5 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.749e-06/0.3289, allocations: 3.25 kB / 389.4 MB, free: 5 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.381e-05/0.329, allocations: 29.52 kB / 389.5 MB, free: 4.992 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000226/0.3292, allocations: 57.72 kB / 389.5 MB, free: 4.988 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006303/0.3299, allocations: 1.396 MB / 390.9 MB, free: 3.578 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002816/0.3302, allocations: 38.23 kB / 391 MB, free: 3.562 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.105e-05/0.3302, allocations: 11.52 kB / 391 MB, free: 3.562 MB / 318.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 9.026e-05/0.3303, allocations: 210.1 kB / 391.2 MB, free: 3.367 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.91e-05/0.3303, allocations: 28.08 kB / 391.2 MB, free: 3.352 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.594e-05/0.3304, allocations: 30.33 kB / 391.2 MB, free: 3.328 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.456e-06/0.3304, allocations: 1.062 kB / 391.2 MB, free: 3.328 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.753e-06/0.3304, allocations: 4.609 kB / 391.2 MB, free: 3.324 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.492e-05/0.3305, allocations: 110.3 kB / 391.4 MB, free: 3.211 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.984e-05/0.3305, allocations: 6.969 kB / 391.4 MB, free: 3.207 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002162/0.3307, allocations: 19.86 kB / 391.4 MB, free: 3.207 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.48e-05/0.3308, allocations: 27.06 kB / 391.4 MB, free: 3.195 MB / 318.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0007866/0.3316, allocations: 388.6 kB / 391.8 MB, free: 2.969 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.0008527/0.3325, allocations: 0.5363 MB / 392.3 MB, free: 2.613 MB / 318.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.00026/0.3327, allocations: 92.11 kB / 392.4 MB, free: 2.586 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0002103/0.333, allocations: 230.3 kB / 392.6 MB, free: 2.465 MB / 318.1 MB Notification: Performance of Backend: time 6.61e-07/0.333, allocations: 0 / 392.6 MB, free: 2.465 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001352/0.3343, allocations: 0.6923 MB / 393.3 MB, free: 1.98 MB / 318.1 MB Notification: Performance of SimCode: time 0.0008907/0.3352, allocations: 0.9362 MB / 394.3 MB, free: 1.211 MB / 318.1 MB Notification: Performance of Templates: time 0.008771/0.344, allocations: 4.66 MB / 398.9 MB, free: 0.6211 MB / 318.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/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