Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo", uses=false) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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.1.0-beta.om_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.1.0-beta.om_Modelica.Electrical.Analog.Examples.OpAmps.Comparator") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008905/0.0008904, allocations: 97.12 kB / 17.35 MB, free: 6.371 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009948/0.0009948, allocations: 206.3 kB / 18.29 MB, free: 5.496 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.576/1.576, allocations: 228 MB / 247.1 MB, free: 9.535 MB / 206.1 MB Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.0002972/0.0002971, allocations: 12.88 kB / 308.1 MB, free: 484 kB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1067/0.107, allocations: 51.53 MB / 359.6 MB, free: 12.93 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.Comparator): time 0.003517/0.1105, allocations: 2.578 MB / 362.2 MB, free: 10.34 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001443/0.112, allocations: 0.7207 MB / 362.9 MB, free: 9.609 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001491/0.1122, allocations: 4 kB / 362.9 MB, free: 9.605 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001422/0.1123, allocations: 35.69 kB / 362.9 MB, free: 9.57 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000201/0.1125, allocations: 83.38 kB / 363 MB, free: 9.488 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000272/0.1128, allocations: 95.91 kB / 363.1 MB, free: 9.395 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004219/0.1133, allocations: 370.5 kB / 363.5 MB, free: 9.031 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000282/0.1135, allocations: 119.5 kB / 363.6 MB, free: 8.914 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001771/0.1137, allocations: 131.4 kB / 363.7 MB, free: 8.785 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002118/0.114, allocations: 151.2 kB / 363.9 MB, free: 8.637 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 4.248e-05/0.114, allocations: 16 kB / 363.9 MB, free: 8.621 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.518e-05/0.1141, allocations: 20 kB / 363.9 MB, free: 8.602 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 6.947e-05/0.1141, allocations: 59.69 kB / 363.9 MB, free: 8.543 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002129/0.1144, allocations: 180.8 kB / 364.1 MB, free: 8.359 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004104/0.1148, allocations: 354.9 kB / 364.5 MB, free: 8.012 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.242e-06/0.1148, allocations: 4 kB / 364.5 MB, free: 8.008 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.273e-06/0.1148, allocations: 0 / 364.5 MB, free: 8.008 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.33e-06/0.1148, allocations: 4 kB / 364.5 MB, free: 8.004 MB / 302.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.001358/0.1162, allocations: 0.6575 MB / 365.1 MB, free: 7.289 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.862e-05/0.1162, allocations: 8.031 kB / 365.1 MB, free: 7.281 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.039e-05/0.1163, allocations: 36.56 kB / 365.2 MB, free: 7.246 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004105/0.1167, allocations: 291.6 kB / 365.5 MB, free: 6.922 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.23e-05/0.1168, allocations: 20.94 kB / 365.5 MB, free: 6.898 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.738e-05/0.1168, allocations: 20.38 kB / 365.5 MB, free: 6.879 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008233/0.1176, allocations: 335.9 kB / 365.8 MB, free: 6.543 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.32e-05/0.1177, allocations: 0 / 365.8 MB, free: 6.543 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.673e-05/0.1177, allocations: 12 kB / 365.8 MB, free: 6.531 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.149e-05/0.1177, allocations: 8 kB / 365.8 MB, free: 6.523 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009178/0.1187, allocations: 310 kB / 366.2 MB, free: 6.219 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002208/0.1209, allocations: 1.161 MB / 367.3 MB, free: 4.965 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009298/0.1218, allocations: 234.6 kB / 367.5 MB, free: 4.727 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003508/0.1222, allocations: 112.8 kB / 367.7 MB, free: 4.613 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.782e-05/0.1222, allocations: 4.188 kB / 367.7 MB, free: 4.609 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005313/0.1228, allocations: 173 kB / 367.8 MB, free: 4.422 MB / 302.1 MB Notification: Performance of pre-optimization done (n=10): time 1.643e-06/0.1228, allocations: 0 / 367.8 MB, free: 4.422 MB / 302.1 MB Notification: Performance of matching and sorting (n=10): time 0.001423/0.1242, allocations: 455.1 kB / 368.3 MB, free: 3.949 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.3e-05/0.1243, allocations: 85.11 kB / 368.4 MB, free: 3.848 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004182/0.1247, allocations: 328.5 kB / 368.7 MB, free: 3.523 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.235e-05/0.1248, allocations: 30.08 kB / 368.7 MB, free: 3.488 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000192/0.125, allocations: 207.5 kB / 368.9 MB, free: 3.281 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.162e-05/0.125, allocations: 39.53 kB / 368.9 MB, free: 3.242 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.675e-05/0.1251, allocations: 21.72 kB / 369 MB, free: 3.215 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0002069/0.1253, allocations: 342.8 kB / 369.3 MB, free: 2.871 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004076/0.1257, allocations: 124.1 kB / 369.4 MB, free: 2.746 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004789/0.1262, allocations: 229.6 kB / 369.6 MB, free: 2.473 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008464/0.127, allocations: 360 kB / 370 MB, free: 2.062 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.088e-06/0.1271, allocations: 0 / 370 MB, free: 2.062 MB / 302.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.00108/0.1281, allocations: 435.7 kB / 370.4 MB, free: 1.621 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.7e-05/0.1282, allocations: 41.69 kB / 370.5 MB, free: 1.574 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.718e-06/0.1282, allocations: 4 kB / 370.5 MB, free: 1.57 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001907/0.1284, allocations: 28.78 kB / 370.5 MB, free: 1.539 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000296/0.1287, allocations: 76.05 kB / 370.6 MB, free: 1.465 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001335/0.1301, allocations: 1.3 MB / 371.9 MB, free: 36 kB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.1851/0.3151, allocations: 61.44 kB / 371.9 MB, free: 18.94 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.51e-05/0.3152, allocations: 12.5 kB / 371.9 MB, free: 18.94 MB / 302.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.0001835/0.3154, allocations: 150.1 kB / 372.1 MB, free: 18.82 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.892e-05/0.3155, allocations: 24.3 kB / 372.1 MB, free: 18.82 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.524e-05/0.3155, allocations: 29.23 kB / 372.1 MB, free: 18.82 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.54e-06/0.3156, allocations: 3.047 kB / 372.1 MB, free: 18.82 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.252e-06/0.3156, allocations: 1.5 kB / 372.1 MB, free: 18.82 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.767e-06/0.3156, allocations: 2.953 kB / 372.1 MB, free: 18.82 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000506/0.3161, allocations: 452.5 kB / 372.6 MB, free: 18.52 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.835e-06/0.3161, allocations: 0.8906 kB / 372.6 MB, free: 18.52 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002018/0.3163, allocations: 40.44 kB / 372.6 MB, free: 18.52 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001296/0.3164, allocations: 30.38 kB / 372.7 MB, free: 18.51 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.771e-05/0.3165, allocations: 2.281 kB / 372.7 MB, free: 18.51 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007437/0.3172, allocations: 1.301 MB / 374 MB, free: 17.27 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.313e-06/0.3172, allocations: 0.9062 kB / 374 MB, free: 17.27 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008543/0.3181, allocations: 307.2 kB / 374.3 MB, free: 17.19 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.742e-05/0.3182, allocations: 105.4 kB / 374.4 MB, free: 17.09 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.938e-05/0.3182, allocations: 5.922 kB / 374.4 MB, free: 17.09 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002454/0.3185, allocations: 42.7 kB / 374.4 MB, free: 17.09 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.602e-05/0.3186, allocations: 20.11 kB / 374.4 MB, free: 17.09 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.362e-05/0.3186, allocations: 7.016 kB / 374.4 MB, free: 17.09 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002655/0.3189, allocations: 226.9 kB / 374.7 MB, free: 17.02 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3189, allocations: 0.5 kB / 374.7 MB, free: 17.02 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003863/0.3192, allocations: 74.23 kB / 374.7 MB, free: 17.01 MB / 302.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.0001465/0.3194, allocations: 103.6 kB / 374.8 MB, free: 16.92 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001099/0.3205, allocations: 438.9 kB / 375.3 MB, free: 16.75 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 5.3e-06/0.3205, allocations: 1.031 kB / 375.3 MB, free: 16.75 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000507/0.321, allocations: 230.4 kB / 375.5 MB, free: 16.64 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003935/0.3214, allocations: 44.67 kB / 375.5 MB, free: 16.64 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001085/0.3225, allocations: 0.5905 MB / 376.1 MB, free: 16.3 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000219/0.3228, allocations: 0.7534 MB / 376.9 MB, free: 15.6 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001377/0.3229, allocations: 35.06 kB / 376.9 MB, free: 15.59 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.267e-05/0.323, allocations: 22.09 kB / 376.9 MB, free: 15.59 MB / 302.1 MB Notification: Performance of SimCode: time 4.81e-07/0.323, allocations: 0 / 376.9 MB, free: 15.59 MB / 302.1 MB Notification: Performance of Templates: time 0.007792/0.3308, allocations: 2.937 MB / 379.9 MB, free: 15.41 MB / 302.1 MB make -j1 -f Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.makefile (rm -f Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.sim & ./Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.OpAmps.Comparator -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.pipe 2>&1) diffSimulationResults("Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.OpAmps.Comparator_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Analog/Examples/OpAmps/Comparator/Comparator.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches