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/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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) 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) 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/Complex 4.0.0+maint.om/package.mo): time 0.001614/0.001614, allocations: 188.9 kB / 17.27 MB, free: 4.5 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.773/1.773, allocations: 222.9 MB / 240.9 MB, free: 11 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001393/0.001393, allocations: 115.4 kB / 291.2 MB, free: 10.93 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.001036/0.001036, allocations: 43.94 kB / 350.1 MB, free: 44 kB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4055/0.4066, allocations: 49.44 MB / 399.5 MB, free: 33.35 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.Comparator): time 0.003685/0.4103, allocations: 2.919 MB / 402.4 MB, free: 30.43 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001119/0.4115, allocations: 0.6973 MB / 403.1 MB, free: 29.73 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001651/0.4117, allocations: 8 kB / 403.1 MB, free: 29.72 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001795/0.4119, allocations: 39.69 kB / 403.2 MB, free: 29.68 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001827/0.4121, allocations: 79.38 kB / 403.2 MB, free: 29.6 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002931/0.4124, allocations: 91.92 kB / 403.3 MB, free: 29.51 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002911/0.4127, allocations: 378.5 kB / 403.7 MB, free: 29.14 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002423/0.4129, allocations: 115.6 kB / 403.8 MB, free: 29.02 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001367/0.4131, allocations: 135.4 kB / 403.9 MB, free: 28.89 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001502/0.4132, allocations: 167.3 kB / 404.1 MB, free: 28.73 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 4.454e-05/0.4133, allocations: 20 kB / 404.1 MB, free: 28.71 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.535e-05/0.4133, allocations: 24 kB / 404.1 MB, free: 28.68 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 5.323e-05/0.4134, allocations: 67.69 kB / 404.2 MB, free: 28.62 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001242/0.4135, allocations: 151.2 kB / 404.4 MB, free: 28.47 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002695/0.4138, allocations: 376.2 kB / 404.7 MB, free: 28.1 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.87e-06/0.4138, allocations: 0 / 404.7 MB, free: 28.1 MB / 298.7 MB Notification: Performance of FrontEnd: time 8.02e-07/0.4138, allocations: 0 / 404.7 MB, free: 28.1 MB / 298.7 MB Notification: Performance of Transformations before backend: time 5.411e-06/0.4138, allocations: 4 kB / 404.7 MB, free: 28.1 MB / 298.7 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.001235/0.415, allocations: 0.6809 MB / 405.4 MB, free: 27.36 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.908e-05/0.4151, allocations: 8.031 kB / 405.4 MB, free: 27.35 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.655e-05/0.4152, allocations: 44.44 kB / 405.5 MB, free: 27.31 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003374/0.4155, allocations: 287.6 kB / 405.7 MB, free: 26.99 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.655e-05/0.4156, allocations: 20.94 kB / 405.8 MB, free: 26.97 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.34e-05/0.4156, allocations: 24.38 kB / 405.8 MB, free: 26.95 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006062/0.4162, allocations: 327.9 kB / 406.1 MB, free: 26.61 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.38e-05/0.4162, allocations: 0 / 406.1 MB, free: 26.61 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.794e-05/0.4163, allocations: 12 kB / 406.1 MB, free: 26.6 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.267e-05/0.4163, allocations: 8 kB / 406.1 MB, free: 26.59 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000707/0.417, allocations: 274 kB / 406.4 MB, free: 26.33 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001612/0.4186, allocations: 1.138 MB / 407.5 MB, free: 25.11 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007743/0.4194, allocations: 214.5 kB / 407.7 MB, free: 24.89 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002763/0.4197, allocations: 80.8 kB / 407.8 MB, free: 24.8 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.939e-05/0.4198, allocations: 4 kB / 407.8 MB, free: 24.8 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004522/0.4202, allocations: 157.2 kB / 408 MB, free: 24.63 MB / 298.7 MB Notification: Performance of pre-optimization done (n=10): time 2.284e-06/0.4202, allocations: 0 / 408 MB, free: 24.63 MB / 298.7 MB Notification: Performance of matching and sorting (n=10): time 0.001254/0.4215, allocations: 419 kB / 408.4 MB, free: 24.19 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.934e-05/0.4215, allocations: 77.11 kB / 408.5 MB, free: 24.1 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002662/0.4218, allocations: 324.5 kB / 408.8 MB, free: 23.78 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.793e-05/0.4218, allocations: 29.7 kB / 408.8 MB, free: 23.74 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001091/0.4219, allocations: 215.4 kB / 409 MB, free: 23.53 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.367e-05/0.422, allocations: 31.64 kB / 409 MB, free: 23.5 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.11e-05/0.4221, allocations: 53.84 kB / 409.1 MB, free: 23.43 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 8.058e-05/0.4222, allocations: 338.8 kB / 409.4 MB, free: 23.09 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003176/0.4225, allocations: 116.1 kB / 409.5 MB, free: 22.98 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003535/0.4228, allocations: 204.6 kB / 409.7 MB, free: 22.73 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006952/0.4235, allocations: 327.9 kB / 410.1 MB, free: 22.35 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.286e-06/0.4236, allocations: 4 kB / 410.1 MB, free: 22.35 MB / 298.7 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0008139/0.4244, allocations: 407.5 kB / 410.5 MB, free: 21.93 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.072e-05/0.4244, allocations: 33.7 kB / 410.5 MB, free: 21.89 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.628e-06/0.4245, allocations: 4 kB / 410.5 MB, free: 21.89 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001849/0.4246, allocations: 32.83 kB / 410.5 MB, free: 21.86 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002623/0.4249, allocations: 68.05 kB / 410.6 MB, free: 21.79 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007671/0.4257, allocations: 1.3 MB / 411.9 MB, free: 20.36 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003082/0.426, allocations: 55.72 kB / 412 MB, free: 20.3 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.418e-05/0.426, allocations: 8.375 kB / 412 MB, free: 20.29 MB / 298.7 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.0001507/0.4262, allocations: 157 kB / 412.1 MB, free: 20.13 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.923e-05/0.4263, allocations: 27.7 kB / 412.1 MB, free: 20.11 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.39e-05/0.4263, allocations: 26.61 kB / 412.2 MB, free: 20.08 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.216e-06/0.4263, allocations: 11.94 kB / 412.2 MB, free: 20.07 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.719e-06/0.4263, allocations: 3.984 kB / 412.2 MB, free: 20.07 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.268e-06/0.4263, allocations: 0 / 412.2 MB, free: 20.07 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003996/0.4267, allocations: 467 kB / 412.6 MB, free: 19.55 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.573e-06/0.4268, allocations: 0 / 412.6 MB, free: 19.55 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001571/0.4269, allocations: 27.97 kB / 412.7 MB, free: 19.52 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.928e-05/0.427, allocations: 28.88 kB / 412.7 MB, free: 19.49 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.572e-05/0.427, allocations: 4 kB / 412.7 MB, free: 19.49 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006595/0.4277, allocations: 1.312 MB / 414 MB, free: 18.04 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.655e-06/0.4277, allocations: 4.031 kB / 414 MB, free: 18.04 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001118/0.4288, allocations: 0.9374 MB / 415 MB, free: 17.04 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.59e-05/0.4289, allocations: 104.8 kB / 415.1 MB, free: 16.91 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.106e-05/0.429, allocations: 0 / 415.1 MB, free: 16.91 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002094/0.4292, allocations: 31.95 kB / 415.1 MB, free: 16.88 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.684e-05/0.4293, allocations: 19.92 kB / 415.1 MB, free: 16.86 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.218e-05/0.4293, allocations: 4 kB / 415.1 MB, free: 16.86 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.000192/0.4295, allocations: 231.1 kB / 415.3 MB, free: 16.64 MB / 298.7 MB Notification: Performance of sort global known variables: time 6.92e-07/0.4295, allocations: 0 / 415.3 MB, free: 16.64 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0004025/0.4299, allocations: 71.84 kB / 415.4 MB, free: 16.57 MB / 298.7 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.0001662/0.4301, allocations: 107.2 kB / 415.5 MB, free: 16.45 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0008788/0.431, allocations: 406 kB / 415.9 MB, free: 16.03 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 4.909e-06/0.431, allocations: 8 kB / 415.9 MB, free: 16.02 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004067/0.4314, allocations: 219.3 kB / 416.1 MB, free: 15.79 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003362/0.4318, allocations: 50.66 kB / 416.2 MB, free: 15.74 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001008/0.4328, allocations: 0.6785 MB / 416.9 MB, free: 15.02 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002848/0.4331, allocations: 0.756 MB / 417.6 MB, free: 14.23 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.0001347/0.4332, allocations: 38.89 kB / 417.6 MB, free: 14.2 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.816e-05/0.4333, allocations: 23.44 kB / 417.7 MB, free: 14.18 MB / 298.7 MB Notification: Performance of SimCode: time 1.843e-06/0.4333, allocations: 0 / 417.7 MB, free: 14.18 MB / 298.7 MB Notification: Performance of Templates: time 0.005751/0.4391, allocations: 3.108 MB / 420.8 MB, free: 11.1 MB / 298.7 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@2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/OpAmps/Comparator/Comparator.csv","../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches