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.001345/0.001345, allocations: 109.2 kB / 17.73 MB, free: 5.289 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.001388/0.001389, allocations: 188.2 kB / 18.66 MB, free: 4.363 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.829/1.829, allocations: 205.1 MB / 224.5 MB, free: 12.23 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.001316/0.001316, allocations: 52.3 kB / 328.6 MB, free: 3.273 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1622/0.1635, allocations: 46.61 MB / 375.2 MB, free: 4.543 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.Comparator): time 0.005548/0.1691, allocations: 2.836 MB / 378 MB, free: 1.691 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001948/0.1711, allocations: 0.7485 MB / 378.8 MB, free: 0.9336 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002749/0.1714, allocations: 7.938 kB / 378.8 MB, free: 0.9258 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002372/0.1717, allocations: 51.5 kB / 378.8 MB, free: 0.875 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00024/0.172, allocations: 103.2 kB / 378.9 MB, free: 0.7734 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003979/0.1724, allocations: 103.8 kB / 379 MB, free: 0.6719 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005063/0.1729, allocations: 406.2 kB / 379.4 MB, free: 280 kB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002906/0.1732, allocations: 135.9 kB / 379.5 MB, free: 144 kB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.3276/0.5008, allocations: 145.5 kB / 379.7 MB, free: 9.871 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006135/0.5015, allocations: 177.4 kB / 379.9 MB, free: 9.871 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001772/0.5017, allocations: 39.06 kB / 379.9 MB, free: 9.871 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001012/0.5018, allocations: 37.09 kB / 379.9 MB, free: 9.871 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000108/0.5019, allocations: 78.47 kB / 380 MB, free: 9.863 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002772/0.5022, allocations: 165.2 kB / 380.2 MB, free: 9.82 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009012/0.5031, allocations: 401.8 kB / 380.6 MB, free: 9.773 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.856e-06/0.5031, allocations: 0 / 380.6 MB, free: 9.773 MB / 318.1 MB Notification: Performance of FrontEnd: time 4.509e-06/0.5031, allocations: 3.188 kB / 380.6 MB, free: 9.773 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.313e-05/0.5031, allocations: 0 / 380.6 MB, free: 9.773 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.001994/0.5051, allocations: 0.6804 MB / 381.2 MB, free: 9.293 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.287e-05/0.5052, allocations: 10.38 kB / 381.3 MB, free: 9.293 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001317/0.5054, allocations: 33.94 kB / 381.3 MB, free: 9.277 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007392/0.5061, allocations: 296.5 kB / 381.6 MB, free: 9.047 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.304e-05/0.5062, allocations: 23 kB / 381.6 MB, free: 9.047 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.136e-05/0.5062, allocations: 28.44 kB / 381.6 MB, free: 9.047 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001/0.5073, allocations: 289.1 kB / 381.9 MB, free: 9.012 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.944e-05/0.5073, allocations: 3.938 kB / 381.9 MB, free: 9.008 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.092e-05/0.5073, allocations: 12.44 kB / 381.9 MB, free: 9.008 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.887e-05/0.5074, allocations: 5.5 kB / 381.9 MB, free: 9.008 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00111/0.5085, allocations: 281.8 kB / 382.2 MB, free: 9.008 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002836/0.5113, allocations: 1.045 MB / 383.3 MB, free: 8.523 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000835/0.5122, allocations: 201.5 kB / 383.5 MB, free: 8.496 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003033/0.5125, allocations: 82.14 kB / 383.5 MB, free: 8.488 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.653e-05/0.5125, allocations: 1.219 kB / 383.5 MB, free: 8.488 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004728/0.513, allocations: 154.8 kB / 383.7 MB, free: 8.422 MB / 318.1 MB Notification: Performance of pre-optimization done (n=11): time 2.254e-06/0.513, allocations: 0 / 383.7 MB, free: 8.422 MB / 318.1 MB Notification: Performance of matching and sorting (n=11): time 0.001503/0.5145, allocations: 398.6 kB / 384.1 MB, free: 8.27 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.746e-05/0.5146, allocations: 79.33 kB / 384.2 MB, free: 8.176 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005824/0.5152, allocations: 332.2 kB / 384.5 MB, free: 8.055 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 3.265e-05/0.5153, allocations: 27.95 kB / 384.5 MB, free: 8.023 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002126/0.5155, allocations: 204.6 kB / 384.7 MB, free: 7.891 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.331e-05/0.5155, allocations: 39.67 kB / 384.7 MB, free: 7.867 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001384/0.5157, allocations: 50.83 kB / 384.8 MB, free: 7.852 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001867/0.5159, allocations: 337 kB / 385.1 MB, free: 7.539 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004373/0.5163, allocations: 101.4 kB / 385.2 MB, free: 7.531 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005342/0.5169, allocations: 202.9 kB / 385.4 MB, free: 7.398 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009885/0.5179, allocations: 314.8 kB / 385.7 MB, free: 7.23 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.702e-06/0.5179, allocations: 1.344 kB / 385.7 MB, free: 7.23 MB / 318.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.001254/0.5191, allocations: 390.7 kB / 386.1 MB, free: 7.133 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.677e-05/0.5192, allocations: 38.3 kB / 386.1 MB, free: 7.102 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.034e-05/0.5193, allocations: 8.156 kB / 386.2 MB, free: 7.098 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002823/0.5196, allocations: 26.48 kB / 386.2 MB, free: 7.09 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003105/0.5199, allocations: 63.47 kB / 386.2 MB, free: 7.09 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001134/0.521, allocations: 1.402 MB / 387.6 MB, free: 5.695 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004344/0.5215, allocations: 60.25 kB / 387.7 MB, free: 5.664 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.841e-05/0.5215, allocations: 15.11 kB / 387.7 MB, free: 5.66 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0004436/0.522, allocations: 186.5 kB / 387.9 MB, free: 5.543 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0003425/0.5223, allocations: 188.2 kB / 388.1 MB, free: 5.383 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0006118/0.5229, allocations: 291.5 kB / 388.4 MB, free: 5.172 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.645e-06/0.523, allocations: 1.062 kB / 388.4 MB, free: 5.172 MB / 318.1 MB Notification: Performance of matching and sorting (n=29) (initialization_lambda0): time 0.0008655/0.5238, allocations: 365.6 kB / 388.7 MB, free: 5.016 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.019e-05/0.5239, allocations: 35.98 kB / 388.8 MB, free: 4.984 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.658e-06/0.5239, allocations: 6.828 kB / 388.8 MB, free: 4.984 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001241/0.524, allocations: 34.14 kB / 388.8 MB, free: 4.973 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002453/0.5243, allocations: 53.02 kB / 388.9 MB, free: 4.973 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008536/0.5251, allocations: 1.401 MB / 390.3 MB, free: 3.562 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003506/0.5255, allocations: 37.81 kB / 390.3 MB, free: 3.547 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.725e-05/0.5255, allocations: 14.95 kB / 390.3 MB, free: 3.543 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.0001894/0.5257, allocations: 200 kB / 390.5 MB, free: 3.352 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.541e-05/0.5258, allocations: 28.81 kB / 390.5 MB, free: 3.336 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.715e-05/0.5259, allocations: 32.02 kB / 390.6 MB, free: 3.312 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.887e-06/0.5259, allocations: 2.156 kB / 390.6 MB, free: 3.312 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.524e-06/0.5259, allocations: 1.25 kB / 390.6 MB, free: 3.312 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.793e-06/0.5259, allocations: 4.703 kB / 390.6 MB, free: 3.309 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005788/0.5265, allocations: 457.2 kB / 391 MB, free: 2.93 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.158e-06/0.5265, allocations: 1.438 kB / 391 MB, free: 2.93 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001731/0.5267, allocations: 29.53 kB / 391 MB, free: 2.93 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001069/0.5268, allocations: 25.44 kB / 391.1 MB, free: 2.918 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.944e-05/0.5269, allocations: 10.14 kB / 391.1 MB, free: 2.91 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008528/0.5277, allocations: 1.397 MB / 392.5 MB, free: 1.504 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.725e-06/0.5277, allocations: 3.625 kB / 392.5 MB, free: 1.504 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007474/0.5285, allocations: 266.4 kB / 392.7 MB, free: 1.363 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.212e-05/0.5286, allocations: 99.12 kB / 392.8 MB, free: 1.258 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.37e-05/0.5286, allocations: 6.062 kB / 392.8 MB, free: 1.254 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002225/0.5289, allocations: 21.86 kB / 392.9 MB, free: 1.254 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.387e-05/0.529, allocations: 20.7 kB / 392.9 MB, free: 1.246 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.53e-05/0.529, allocations: 6.266 kB / 392.9 MB, free: 1.246 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.000331/0.5293, allocations: 231 kB / 393.1 MB, free: 1.117 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.81e-07/0.5293, allocations: 0 / 393.1 MB, free: 1.117 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0007111/0.53, allocations: 126.7 kB / 393.2 MB, free: 1.094 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.0001786/0.5302, allocations: 106.1 kB / 393.3 MB, free: 0.9961 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001636/0.5319, allocations: 0.6928 MB / 394 MB, free: 0.5586 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.437e-06/0.5319, allocations: 1.156 kB / 394 MB, free: 0.5586 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004918/0.5324, allocations: 213.5 kB / 394.2 MB, free: 432 kB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004201/0.5328, allocations: 51.58 kB / 394.3 MB, free: 412 kB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001272/0.5341, allocations: 483.7 kB / 394.8 MB, free: 116 kB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004974/0.5346, allocations: 0.7543 MB / 395.5 MB, free: 15.41 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.000179/0.5348, allocations: 39.28 kB / 395.6 MB, free: 15.4 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.485e-05/0.5349, allocations: 27.81 kB / 395.6 MB, free: 15.39 MB / 334.1 MB Notification: Performance of SimCode: time 3.61e-07/0.5349, allocations: 0 / 395.6 MB, free: 15.39 MB / 334.1 MB Notification: Performance of Templates: time 0.01103/0.5459, allocations: 3.671 MB / 399.3 MB, free: 15.12 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