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.001323/0.001323, allocations: 113.4 kB / 17.73 MB, free: 5.355 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.001181/0.001181, allocations: 184.1 kB / 18.66 MB, free: 4.43 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.74/1.74, allocations: 205.1 MB / 224.5 MB, free: 12.25 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.001507/0.001507, allocations: 63.91 kB / 328.6 MB, free: 3.273 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1514/0.153, allocations: 46.61 MB / 375.2 MB, free: 4.551 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.Comparator): time 0.004905/0.1579, allocations: 2.843 MB / 378 MB, free: 1.695 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001617/0.1596, allocations: 0.7446 MB / 378.8 MB, free: 0.9414 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000226/0.1598, allocations: 4 kB / 378.8 MB, free: 0.9375 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000246/0.1601, allocations: 51.5 kB / 378.8 MB, free: 0.8867 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002353/0.1604, allocations: 95.19 kB / 378.9 MB, free: 0.793 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003553/0.1608, allocations: 107.8 kB / 379 MB, free: 0.6875 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004526/0.1612, allocations: 406.3 kB / 379.4 MB, free: 296 kB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002719/0.1615, allocations: 139.8 kB / 379.5 MB, free: 156 kB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002023/0.1617, allocations: 147.5 kB / 379.7 MB, free: 8 kB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.332/0.4937, allocations: 174 kB / 379.9 MB, free: 10.05 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001389/0.4939, allocations: 37.34 kB / 379.9 MB, free: 10.05 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.142e-05/0.494, allocations: 36.72 kB / 379.9 MB, free: 10.05 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 9.97e-05/0.4941, allocations: 75.11 kB / 380 MB, free: 10.05 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002315/0.4943, allocations: 173.9 kB / 380.2 MB, free: 10 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006711/0.495, allocations: 398.2 kB / 380.6 MB, free: 9.945 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.304e-06/0.495, allocations: 4.156 kB / 380.6 MB, free: 9.945 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.685e-06/0.495, allocations: 2.219 kB / 380.6 MB, free: 9.945 MB / 318.1 MB Notification: Performance of Transformations before backend: time 9.187e-06/0.495, allocations: 0.9375 kB / 380.6 MB, free: 9.945 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.001475/0.4965, allocations: 0.6818 MB / 381.3 MB, free: 9.457 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.296e-05/0.4966, allocations: 11.12 kB / 381.3 MB, free: 9.457 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.286e-05/0.4967, allocations: 39.83 kB / 381.3 MB, free: 9.438 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005352/0.4972, allocations: 299.9 kB / 381.6 MB, free: 9.207 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.836e-05/0.4972, allocations: 18.75 kB / 381.6 MB, free: 9.207 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.922e-05/0.4973, allocations: 24.53 kB / 381.6 MB, free: 9.207 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008094/0.4981, allocations: 285 kB / 381.9 MB, free: 9.172 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.798e-05/0.4981, allocations: 4.688 kB / 381.9 MB, free: 9.168 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.787e-05/0.4982, allocations: 12.47 kB / 381.9 MB, free: 9.168 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.042e-05/0.4982, allocations: 5.5 kB / 381.9 MB, free: 9.168 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000967/0.4992, allocations: 287.2 kB / 382.2 MB, free: 9.164 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002077/0.5013, allocations: 1.05 MB / 383.3 MB, free: 8.676 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007538/0.502, allocations: 197.2 kB / 383.5 MB, free: 8.652 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003254/0.5024, allocations: 83.25 kB / 383.5 MB, free: 8.645 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.974e-05/0.5024, allocations: 1.062 kB / 383.5 MB, free: 8.645 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005156/0.5029, allocations: 158 kB / 383.7 MB, free: 8.578 MB / 318.1 MB Notification: Performance of pre-optimization done (n=11): time 2.565e-06/0.503, allocations: 0 / 383.7 MB, free: 8.578 MB / 318.1 MB Notification: Performance of matching and sorting (n=11): time 0.00154/0.5045, allocations: 402.7 kB / 384.1 MB, free: 8.422 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.483e-05/0.5046, allocations: 79.73 kB / 384.2 MB, free: 8.328 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005875/0.5052, allocations: 325.5 kB / 384.5 MB, free: 8.211 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 3.623e-05/0.5052, allocations: 32.39 kB / 384.5 MB, free: 8.18 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000182/0.5054, allocations: 209.2 kB / 384.7 MB, free: 8.043 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.561e-05/0.5055, allocations: 42.67 kB / 384.8 MB, free: 8.02 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001372/0.5056, allocations: 53.78 kB / 384.8 MB, free: 8 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001542/0.5058, allocations: 337.7 kB / 385.1 MB, free: 7.688 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000378/0.5062, allocations: 99.78 kB / 385.2 MB, free: 7.68 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004231/0.5066, allocations: 198 kB / 385.4 MB, free: 7.551 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007729/0.5074, allocations: 321.3 kB / 385.8 MB, free: 7.379 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.949e-06/0.5074, allocations: 1.25 kB / 385.8 MB, free: 7.379 MB / 318.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.001214/0.5086, allocations: 387 kB / 386.1 MB, free: 7.277 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.035e-05/0.5087, allocations: 33.56 kB / 386.2 MB, free: 7.246 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.71e-05/0.5087, allocations: 4.734 kB / 386.2 MB, free: 7.246 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002956/0.509, allocations: 33.44 kB / 386.2 MB, free: 7.23 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003452/0.5094, allocations: 62.2 kB / 386.3 MB, free: 7.227 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001449/0.5109, allocations: 1.398 MB / 387.7 MB, free: 5.809 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004704/0.5113, allocations: 56.59 kB / 387.7 MB, free: 5.781 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.007e-05/0.5114, allocations: 28.28 kB / 387.7 MB, free: 5.77 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0004723/0.5119, allocations: 190.7 kB / 387.9 MB, free: 5.652 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.000399/0.5123, allocations: 184.1 kB / 388.1 MB, free: 5.496 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0006163/0.5129, allocations: 294.9 kB / 388.4 MB, free: 5.285 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 3.627e-06/0.5129, allocations: 5.438 kB / 388.4 MB, free: 5.281 MB / 318.1 MB Notification: Performance of matching and sorting (n=29) (initialization_lambda0): time 0.0009101/0.5139, allocations: 361.9 kB / 388.8 MB, free: 5.129 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.272e-05/0.5139, allocations: 39.09 kB / 388.8 MB, free: 5.094 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.474e-06/0.5139, allocations: 3.5 kB / 388.8 MB, free: 5.094 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001341/0.5141, allocations: 32.97 kB / 388.8 MB, free: 5.082 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002846/0.5144, allocations: 57.59 kB / 388.9 MB, free: 5.082 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001101/0.5155, allocations: 1.397 MB / 390.3 MB, free: 3.672 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003285/0.5158, allocations: 37.84 kB / 390.3 MB, free: 3.656 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.101e-05/0.5159, allocations: 11.23 kB / 390.3 MB, free: 3.656 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 0.0001991/0.5161, allocations: 203.4 kB / 390.5 MB, free: 3.461 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.746e-05/0.5161, allocations: 28.22 kB / 390.6 MB, free: 3.445 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.791e-05/0.5162, allocations: 29.86 kB / 390.6 MB, free: 3.422 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.997e-06/0.5162, allocations: 5.859 kB / 390.6 MB, free: 3.422 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.093e-06/0.5162, allocations: 1.188 kB / 390.6 MB, free: 3.422 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.59e-06/0.5162, allocations: 1.766 kB / 390.6 MB, free: 3.422 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006711/0.5169, allocations: 460.4 kB / 391 MB, free: 3.043 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.136e-06/0.5169, allocations: 0.6094 kB / 391 MB, free: 3.043 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001782/0.5171, allocations: 28.08 kB / 391.1 MB, free: 3.043 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001134/0.5172, allocations: 25.55 kB / 391.1 MB, free: 3.031 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.289e-05/0.5173, allocations: 7.109 kB / 391.1 MB, free: 3.027 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001043/0.5183, allocations: 1.396 MB / 392.5 MB, free: 1.617 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.757e-06/0.5183, allocations: 1.219 kB / 392.5 MB, free: 1.617 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008302/0.5192, allocations: 266.5 kB / 392.8 MB, free: 1.477 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.475e-05/0.5193, allocations: 107.5 kB / 392.9 MB, free: 1.363 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.111e-05/0.5193, allocations: 7.156 kB / 392.9 MB, free: 1.359 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002209/0.5195, allocations: 20.17 kB / 392.9 MB, free: 1.359 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000124/0.5197, allocations: 17.88 kB / 392.9 MB, free: 1.355 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.785e-05/0.5197, allocations: 11.11 kB / 392.9 MB, free: 1.352 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0003427/0.52, allocations: 231.8 kB / 393.1 MB, free: 1.223 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.5201, allocations: 0 / 393.1 MB, free: 1.223 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0006732/0.5207, allocations: 121.9 kB / 393.3 MB, free: 1.203 MB / 318.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.0002023/0.5209, allocations: 107.2 kB / 393.4 MB, free: 1.105 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001846/0.5228, allocations: 0.7007 MB / 394.1 MB, free: 0.668 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 4.368e-06/0.5228, allocations: 0 / 394.1 MB, free: 0.668 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005334/0.5234, allocations: 210.9 kB / 394.3 MB, free: 0.5352 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004517/0.5238, allocations: 53.95 kB / 394.3 MB, free: 0.5117 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001385/0.5252, allocations: 483.7 kB / 394.8 MB, free: 224 kB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006514/0.5259, allocations: 0.761 MB / 395.6 MB, free: 15.52 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001884/0.5261, allocations: 38.95 kB / 395.6 MB, free: 15.5 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001014/0.5262, allocations: 27.12 kB / 395.6 MB, free: 15.5 MB / 334.1 MB Notification: Performance of SimCode: time 8.11e-07/0.5262, allocations: 0 / 395.6 MB, free: 15.5 MB / 334.1 MB Notification: Performance of Templates: time 0.01268/0.5389, allocations: 3.661 MB / 399.3 MB, free: 15.23 MB / 334.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","/var/lib/jenkins/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