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.001523/0.001523, allocations: 114.7 kB / 17.98 MB, free: 4.883 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001343/0.001343, allocations: 205.8 kB / 18.92 MB, free: 4.129 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.401/1.401, allocations: 227.7 MB / 247.4 MB, free: 10.52 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.001868/0.001868, allocations: 62.19 kB / 307.4 MB, free: 0.8125 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09321/0.09509, allocations: 50.54 MB / 357.9 MB, free: 14.25 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.Comparator): time 0.004323/0.09945, allocations: 2.949 MB / 360.9 MB, free: 11.29 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001235/0.1007, allocations: 0.7246 MB / 361.6 MB, free: 10.55 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001281/0.1008, allocations: 11.94 kB / 361.6 MB, free: 10.54 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001593/0.101, allocations: 35.75 kB / 361.7 MB, free: 10.51 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001883/0.1012, allocations: 79.39 kB / 361.7 MB, free: 10.43 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002676/0.1015, allocations: 99.84 kB / 361.8 MB, free: 10.33 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004289/0.1019, allocations: 386.5 kB / 362.2 MB, free: 9.953 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002474/0.1022, allocations: 147.8 kB / 362.4 MB, free: 9.809 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001822/0.1024, allocations: 147.4 kB / 362.5 MB, free: 9.664 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002254/0.1026, allocations: 175.2 kB / 362.7 MB, free: 9.492 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 5.465e-05/0.1027, allocations: 36 kB / 362.7 MB, free: 9.457 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.549e-05/0.1027, allocations: 36 kB / 362.7 MB, free: 9.422 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 7.504e-05/0.1028, allocations: 79.69 kB / 362.8 MB, free: 9.344 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001793/0.103, allocations: 179.1 kB / 363 MB, free: 9.168 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003193/0.1033, allocations: 295.5 kB / 363.3 MB, free: 8.879 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.6e-06/0.1033, allocations: 4 kB / 363.3 MB, free: 8.875 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.283e-06/0.1034, allocations: 4 kB / 363.3 MB, free: 8.871 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.751e-06/0.1034, allocations: 0 / 363.3 MB, free: 8.871 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.001363/0.1047, allocations: 0.6833 MB / 364 MB, free: 8.137 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.377e-05/0.1048, allocations: 8.031 kB / 364 MB, free: 8.129 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.096e-05/0.1049, allocations: 36.55 kB / 364 MB, free: 8.094 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003603/0.1052, allocations: 287.6 kB / 364.3 MB, free: 7.773 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.288e-05/0.1053, allocations: 20.94 kB / 364.3 MB, free: 7.75 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.39e-05/0.1053, allocations: 28.38 kB / 364.3 MB, free: 7.723 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007211/0.106, allocations: 323.9 kB / 364.7 MB, free: 7.398 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.165e-05/0.1061, allocations: 0 / 364.7 MB, free: 7.398 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.189e-05/0.1061, allocations: 12 kB / 364.7 MB, free: 7.387 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.675e-06/0.1061, allocations: 4 kB / 364.7 MB, free: 7.383 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007805/0.1069, allocations: 278 kB / 364.9 MB, free: 7.109 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001883/0.1088, allocations: 1.134 MB / 366.1 MB, free: 5.887 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007875/0.1096, allocations: 210.4 kB / 366.3 MB, free: 5.672 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003114/0.1099, allocations: 92.78 kB / 366.4 MB, free: 5.578 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.096e-05/0.11, allocations: 0 / 366.4 MB, free: 5.578 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004952/0.1105, allocations: 173 kB / 366.5 MB, free: 5.391 MB / 302.1 MB Notification: Performance of pre-optimization done (n=10): time 1.322e-06/0.1105, allocations: 0 / 366.5 MB, free: 5.391 MB / 302.1 MB Notification: Performance of matching and sorting (n=10): time 0.001272/0.1118, allocations: 407.1 kB / 366.9 MB, free: 4.965 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.731e-05/0.1118, allocations: 85.05 kB / 367 MB, free: 4.863 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003761/0.1122, allocations: 324.5 kB / 367.3 MB, free: 4.539 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.885e-05/0.1123, allocations: 33.73 kB / 367.4 MB, free: 4.5 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001614/0.1124, allocations: 211.5 kB / 367.6 MB, free: 4.289 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.451e-05/0.1125, allocations: 31.55 kB / 367.6 MB, free: 4.258 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001034/0.1126, allocations: 49.94 kB / 367.7 MB, free: 4.199 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001597/0.1127, allocations: 334.8 kB / 368 MB, free: 3.863 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003557/0.1131, allocations: 108.1 kB / 368.1 MB, free: 3.758 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004283/0.1135, allocations: 207 kB / 368.3 MB, free: 3.504 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007431/0.1143, allocations: 335.9 kB / 368.6 MB, free: 3.117 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.945e-06/0.1143, allocations: 0 / 368.6 MB, free: 3.117 MB / 302.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.001015/0.1153, allocations: 407.4 kB / 369 MB, free: 2.703 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.499e-05/0.1154, allocations: 37.69 kB / 369.1 MB, free: 2.66 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.616e-06/0.1154, allocations: 4 kB / 369.1 MB, free: 2.656 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001718/0.1156, allocations: 33.16 kB / 369.1 MB, free: 2.621 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002804/0.1159, allocations: 67.89 kB / 369.2 MB, free: 2.555 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001213/0.1171, allocations: 1.398 MB / 370.6 MB, free: 1.02 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003479/0.1174, allocations: 59.78 kB / 370.6 MB, free: 0.9609 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.787e-05/0.1175, allocations: 11.98 kB / 370.6 MB, free: 0.9492 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.0001696/0.1177, allocations: 152 kB / 370.8 MB, free: 0.793 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.511e-05/0.1177, allocations: 27.62 kB / 370.8 MB, free: 0.7656 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.659e-05/0.1178, allocations: 30.61 kB / 370.8 MB, free: 0.7383 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.667e-06/0.1178, allocations: 7.938 kB / 370.8 MB, free: 0.7305 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.699e-06/0.1178, allocations: 7.938 kB / 370.9 MB, free: 0.7227 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.886e-06/0.1178, allocations: 384 / 370.9 MB, free: 0.7227 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005603/0.1184, allocations: 447.2 kB / 371.3 MB, free: 232 kB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.593e-06/0.1184, allocations: 0 / 371.3 MB, free: 232 kB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001848/0.1186, allocations: 27.97 kB / 371.3 MB, free: 204 kB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000109/0.1187, allocations: 44.67 kB / 371.4 MB, free: 156 kB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.542e-05/0.1187, allocations: 4 kB / 371.4 MB, free: 152 kB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1479/0.2666, allocations: 1.384 MB / 372.8 MB, free: 18.91 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.659e-06/0.2667, allocations: 5.766 kB / 372.8 MB, free: 18.91 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008642/0.2675, allocations: 266.3 kB / 373 MB, free: 18.83 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001002/0.2676, allocations: 108.3 kB / 373.1 MB, free: 18.73 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.23e-05/0.2677, allocations: 8.25 kB / 373.1 MB, free: 18.73 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002545/0.268, allocations: 25.36 kB / 373.2 MB, free: 18.73 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.419e-05/0.2681, allocations: 25.89 kB / 373.2 MB, free: 18.73 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.748e-05/0.2681, allocations: 3.891 kB / 373.2 MB, free: 18.73 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002822/0.2684, allocations: 230.6 kB / 373.4 MB, free: 18.66 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2684, allocations: 0 / 373.4 MB, free: 18.66 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004118/0.2688, allocations: 72.23 kB / 373.5 MB, free: 18.66 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.0001398/0.269, allocations: 104.2 kB / 373.6 MB, free: 18.57 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.00109/0.2701, allocations: 414 kB / 374 MB, free: 18.41 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.845e-06/0.2701, allocations: 0 / 374 MB, free: 18.41 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000522/0.2706, allocations: 210.5 kB / 374.2 MB, free: 18.3 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003899/0.271, allocations: 49.48 kB / 374.2 MB, free: 18.3 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00117/0.2722, allocations: 0.5851 MB / 374.8 MB, free: 17.95 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002138/0.2724, allocations: 0.7545 MB / 375.6 MB, free: 17.25 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.958e-05/0.2725, allocations: 25.22 kB / 375.6 MB, free: 17.24 MB / 302.1 MB Notification: Performance of SimCode: time 5.01e-07/0.2725, allocations: 1.031 kB / 375.6 MB, free: 17.24 MB / 302.1 MB Notification: Performance of Templates: time 0.009167/0.2817, allocations: 4.623 MB / 380.2 MB, free: 16.96 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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Analog/Examples/OpAmps/Comparator/Comparator.csv","/var/lib/jenkins1/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