Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_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 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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_4.0.0_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_4.0.0_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.001282/0.001283, allocations: 111.7 kB / 17.06 MB, free: 5.973 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.001564/0.001564, allocations: 198.8 kB / 18.01 MB, free: 5.055 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.558/1.558, allocations: 222.9 MB / 241.7 MB, free: 15.17 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001663/0.001663, allocations: 47.94 kB / 351.3 MB, free: 3.219 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4071/0.4088, allocations: 49.43 MB / 400.8 MB, free: 8.742 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.Comparator): time 0.004665/0.4135, allocations: 2.889 MB / 403.7 MB, free: 5.957 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001482/0.4151, allocations: 0.6934 MB / 404.3 MB, free: 5.258 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000166/0.4152, allocations: 4 kB / 404.3 MB, free: 5.254 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002179/0.4155, allocations: 55.44 kB / 404.4 MB, free: 5.199 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002109/0.4157, allocations: 99.19 kB / 404.5 MB, free: 5.102 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003181/0.416, allocations: 103.9 kB / 404.6 MB, free: 5 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004343/0.4165, allocations: 402.4 kB / 405 MB, free: 4.605 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002778/0.4168, allocations: 135.9 kB / 405.1 MB, free: 4.469 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001839/0.417, allocations: 155.4 kB / 405.3 MB, free: 4.316 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002043/0.4172, allocations: 167.3 kB / 405.4 MB, free: 4.152 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 5.884e-05/0.4172, allocations: 36 kB / 405.5 MB, free: 4.117 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.648e-05/0.4173, allocations: 39.94 kB / 405.5 MB, free: 4.078 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 8.396e-05/0.4174, allocations: 79.73 kB / 405.6 MB, free: 4 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001786/0.4176, allocations: 167.2 kB / 405.8 MB, free: 3.836 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004834/0.4181, allocations: 391.8 kB / 406.1 MB, free: 3.457 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.841e-06/0.4181, allocations: 0 / 406.1 MB, free: 3.457 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.274e-06/0.4181, allocations: 0 / 406.1 MB, free: 3.457 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.036e-05/0.4181, allocations: 0 / 406.1 MB, free: 3.457 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.00144/0.4195, allocations: 0.6847 MB / 406.8 MB, free: 2.719 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.033e-05/0.4196, allocations: 12.03 kB / 406.8 MB, free: 2.707 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.217e-05/0.4197, allocations: 40.47 kB / 406.9 MB, free: 2.668 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005166/0.4202, allocations: 291.6 kB / 407.2 MB, free: 2.344 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.523e-05/0.4203, allocations: 20.94 kB / 407.2 MB, free: 2.324 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.34e-05/0.4203, allocations: 24.38 kB / 407.2 MB, free: 2.301 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006645/0.421, allocations: 327.9 kB / 407.5 MB, free: 1.973 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.33e-05/0.421, allocations: 0 / 407.5 MB, free: 1.973 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.203e-05/0.421, allocations: 12 kB / 407.5 MB, free: 1.961 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.067e-06/0.421, allocations: 4 kB / 407.5 MB, free: 1.957 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007379/0.4218, allocations: 274.1 kB / 407.8 MB, free: 1.688 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001904/0.4237, allocations: 1.13 MB / 408.9 MB, free: 480 kB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007848/0.4245, allocations: 206.5 kB / 409.1 MB, free: 264 kB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002934/0.4248, allocations: 92.78 kB / 409.2 MB, free: 168 kB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.554e-05/0.4248, allocations: 0 / 409.2 MB, free: 168 kB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004185/0.4253, allocations: 165.1 kB / 409.4 MB, free: 15.98 MB / 334.1 MB Notification: Performance of pre-optimization done (n=10): time 1.283e-06/0.4253, allocations: 0 / 409.4 MB, free: 15.98 MB / 334.1 MB Notification: Performance of matching and sorting (n=10): time 0.001237/0.4265, allocations: 407.1 kB / 409.8 MB, free: 15.55 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.359e-05/0.4266, allocations: 85.09 kB / 409.9 MB, free: 15.45 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003813/0.427, allocations: 328.4 kB / 410.2 MB, free: 15.12 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.405e-05/0.427, allocations: 29.7 kB / 410.2 MB, free: 15.09 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001423/0.4272, allocations: 215.5 kB / 410.4 MB, free: 14.88 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.31e-05/0.4272, allocations: 31.55 kB / 410.5 MB, free: 14.84 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001016/0.4273, allocations: 57.83 kB / 410.5 MB, free: 14.78 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001391/0.4275, allocations: 338.8 kB / 410.9 MB, free: 14.44 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003196/0.4278, allocations: 96.16 kB / 410.9 MB, free: 14.34 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003922/0.4282, allocations: 215 kB / 411.2 MB, free: 14.08 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006661/0.4289, allocations: 334.5 kB / 411.5 MB, free: 13.7 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.773e-06/0.4289, allocations: 7.984 kB / 411.5 MB, free: 13.69 MB / 334.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0009006/0.4298, allocations: 403.7 kB / 411.9 MB, free: 13.28 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.476e-05/0.4298, allocations: 33.7 kB / 411.9 MB, free: 13.24 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.358e-06/0.4299, allocations: 4 kB / 411.9 MB, free: 13.23 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002228/0.4301, allocations: 33 kB / 412 MB, free: 13.2 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002706/0.4304, allocations: 67.88 kB / 412 MB, free: 13.13 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001197/0.4316, allocations: 1.414 MB / 413.4 MB, free: 11.57 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003313/0.4319, allocations: 55.56 kB / 413.5 MB, free: 11.52 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.841e-05/0.432, allocations: 12 kB / 413.5 MB, free: 11.51 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 17 * 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.0001639/0.4321, allocations: 145.9 kB / 413.6 MB, free: 11.36 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.441e-05/0.4322, allocations: 23.72 kB / 413.7 MB, free: 11.33 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.295e-05/0.4322, allocations: 30.61 kB / 413.7 MB, free: 11.3 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.797e-06/0.4322, allocations: 4 kB / 413.7 MB, free: 11.3 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.486e-06/0.4323, allocations: 7.922 kB / 413.7 MB, free: 11.29 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.178e-06/0.4323, allocations: 3.938 kB / 413.7 MB, free: 11.29 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005008/0.4328, allocations: 443.2 kB / 414.1 MB, free: 10.79 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.264e-06/0.4328, allocations: 4.031 kB / 414.1 MB, free: 10.79 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001643/0.433, allocations: 31.95 kB / 414.2 MB, free: 10.76 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.911e-05/0.4331, allocations: 28.78 kB / 414.2 MB, free: 10.73 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.666e-05/0.4331, allocations: 4.375 kB / 414.2 MB, free: 10.72 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001115/0.4342, allocations: 1.402 MB / 415.6 MB, free: 9.18 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.116e-06/0.4342, allocations: 4.141 kB / 415.6 MB, free: 9.176 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007127/0.435, allocations: 282.1 kB / 415.9 MB, free: 8.875 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.493e-05/0.4351, allocations: 104.8 kB / 416 MB, free: 8.754 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.283e-05/0.4351, allocations: 0 / 416 MB, free: 8.754 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002095/0.4353, allocations: 27.97 kB / 416 MB, free: 8.727 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.049e-05/0.4354, allocations: 23.91 kB / 416 MB, free: 8.703 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.325e-05/0.4354, allocations: 4 kB / 416 MB, free: 8.699 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002362/0.4357, allocations: 235.1 kB / 416.3 MB, free: 8.473 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.352e-06/0.4357, allocations: 0 / 416.3 MB, free: 8.473 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003316/0.436, allocations: 71.78 kB / 416.3 MB, free: 8.402 MB / 334.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 (9): * Single equations (assignments): 6 * 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.0001683/0.4362, allocations: 104 kB / 416.4 MB, free: 8.289 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001032/0.4372, allocations: 405.8 kB / 416.8 MB, free: 7.867 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.096e-06/0.4373, allocations: 1 kB / 416.8 MB, free: 7.867 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004731/0.4377, allocations: 222.6 kB / 417.1 MB, free: 7.637 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003923/0.4381, allocations: 45.62 kB / 417.1 MB, free: 7.59 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00115/0.4393, allocations: 488.8 kB / 417.6 MB, free: 7.086 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004089/0.4397, allocations: 0.7518 MB / 418.3 MB, free: 6.305 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.000112/0.4398, allocations: 34.97 kB / 418.4 MB, free: 6.27 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.815e-05/0.4399, allocations: 19.44 kB / 418.4 MB, free: 6.25 MB / 334.1 MB Notification: Performance of SimCode: time 9.62e-07/0.4399, allocations: 0 / 418.4 MB, free: 6.25 MB / 334.1 MB Notification: Performance of Templates: time 0.007876/0.4478, allocations: 3.268 MB / 421.7 MB, free: 3.016 MB / 334.1 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.sim & ./Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Comparator -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Comparator_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/OpAmps/Comparator/Comparator.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches