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.001588/0.001588, allocations: 111.5 kB / 17.69 MB, free: 5.438 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.001805/0.001805, allocations: 192 kB / 18.63 MB, free: 4.508 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.309/1.309, allocations: 222.9 MB / 242.3 MB, free: 15.19 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001055/0.001055, allocations: 47.11 kB / 302.1 MB, free: 5.176 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09847/0.09954, allocations: 49.45 MB / 351.5 MB, free: 3.707 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.Comparator): time 0.003881/0.1035, allocations: 2.874 MB / 354.4 MB, free: 0.8125 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001095/0.1046, allocations: 0.7128 MB / 355.1 MB, free: 96 kB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001328/0.1047, allocations: 11.94 kB / 355.1 MB, free: 84 kB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001801/0.1049, allocations: 51.5 kB / 355.2 MB, free: 32 kB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001951/0.1051, allocations: 91.3 kB / 355.3 MB, free: 15.94 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002735/0.1054, allocations: 111.8 kB / 355.4 MB, free: 15.83 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.000377/0.1058, allocations: 394.3 kB / 355.7 MB, free: 15.45 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002263/0.106, allocations: 135.9 kB / 355.9 MB, free: 15.31 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001561/0.1062, allocations: 147.4 kB / 356 MB, free: 15.16 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001977/0.1064, allocations: 179.2 kB / 356.2 MB, free: 14.99 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 5.277e-05/0.1065, allocations: 36 kB / 356.2 MB, free: 14.95 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.512e-05/0.1065, allocations: 36 kB / 356.3 MB, free: 14.92 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 6.929e-05/0.1066, allocations: 75.69 kB / 356.3 MB, free: 14.84 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001556/0.1068, allocations: 171.2 kB / 356.5 MB, free: 14.68 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003447/0.1071, allocations: 398.6 kB / 356.9 MB, free: 14.29 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.487e-06/0.1071, allocations: 0 / 356.9 MB, free: 14.29 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.182e-06/0.1071, allocations: 4 kB / 356.9 MB, free: 14.28 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.005e-05/0.1071, allocations: 0 / 356.9 MB, free: 14.28 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.001252/0.1084, allocations: 0.6847 MB / 357.6 MB, free: 13.54 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.317e-05/0.1084, allocations: 8.031 kB / 357.6 MB, free: 13.54 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.936e-05/0.1085, allocations: 36.56 kB / 357.6 MB, free: 13.5 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000365/0.1089, allocations: 287.6 kB / 357.9 MB, free: 13.18 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.164e-05/0.1089, allocations: 20.94 kB / 357.9 MB, free: 13.16 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.027e-05/0.109, allocations: 28.31 kB / 358 MB, free: 13.13 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006626/0.1096, allocations: 323.9 kB / 358.3 MB, free: 12.8 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.398e-06/0.1097, allocations: 0 / 358.3 MB, free: 12.8 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.9e-05/0.1097, allocations: 12 kB / 358.3 MB, free: 12.79 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.444e-06/0.1097, allocations: 7.938 kB / 358.3 MB, free: 12.79 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007531/0.1105, allocations: 274.1 kB / 358.6 MB, free: 12.52 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001676/0.1121, allocations: 1.13 MB / 359.7 MB, free: 11.3 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007634/0.1129, allocations: 206.5 kB / 359.9 MB, free: 11.09 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002976/0.1132, allocations: 92.78 kB / 360 MB, free: 11 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.175e-05/0.1133, allocations: 0 / 360 MB, free: 11 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004078/0.1137, allocations: 157.1 kB / 360.1 MB, free: 10.82 MB / 302.1 MB Notification: Performance of pre-optimization done (n=10): time 1.353e-06/0.1137, allocations: 3.938 kB / 360.1 MB, free: 10.82 MB / 302.1 MB Notification: Performance of matching and sorting (n=10): time 0.001246/0.1149, allocations: 411 kB / 360.5 MB, free: 10.39 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.817e-05/0.115, allocations: 89.03 kB / 360.6 MB, free: 10.29 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003367/0.1154, allocations: 328.5 kB / 361 MB, free: 9.953 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.523e-05/0.1154, allocations: 33.7 kB / 361 MB, free: 9.914 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001607/0.1156, allocations: 207.5 kB / 361.2 MB, free: 9.707 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.177e-05/0.1156, allocations: 31.55 kB / 361.2 MB, free: 9.676 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.445e-05/0.1157, allocations: 53.92 kB / 361.3 MB, free: 9.613 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001225/0.1158, allocations: 338.8 kB / 361.6 MB, free: 9.273 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000339/0.1162, allocations: 100.2 kB / 361.7 MB, free: 9.176 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003835/0.1166, allocations: 207.5 kB / 361.9 MB, free: 8.922 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006866/0.1173, allocations: 331.9 kB / 362.2 MB, free: 8.539 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.668e-06/0.1173, allocations: 4 kB / 362.2 MB, free: 8.535 MB / 302.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0009603/0.1182, allocations: 403.3 kB / 362.6 MB, free: 8.125 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.605e-05/0.1183, allocations: 37.7 kB / 362.7 MB, free: 8.082 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.178e-05/0.1183, allocations: 8.391 kB / 362.7 MB, free: 8.074 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001976/0.1185, allocations: 28.84 kB / 362.7 MB, free: 8.043 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002891/0.1188, allocations: 67.88 kB / 362.8 MB, free: 7.977 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001165/0.12, allocations: 1.414 MB / 364.2 MB, free: 6.422 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003524/0.1204, allocations: 59.72 kB / 364.2 MB, free: 6.363 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.495e-05/0.1204, allocations: 8 kB / 364.2 MB, free: 6.355 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.0001481/0.1205, allocations: 149.7 kB / 364.4 MB, free: 6.199 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.584e-05/0.1206, allocations: 27.66 kB / 364.4 MB, free: 6.172 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.648e-05/0.1206, allocations: 26.61 kB / 364.4 MB, free: 6.148 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.126e-06/0.1206, allocations: 4 kB / 364.4 MB, free: 6.145 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.629e-06/0.1207, allocations: 3.938 kB / 364.5 MB, free: 6.141 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.719e-06/0.1207, allocations: 3.984 kB / 364.5 MB, free: 6.137 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004722/0.1211, allocations: 451.2 kB / 364.9 MB, free: 5.637 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.613e-06/0.1212, allocations: 3.938 kB / 364.9 MB, free: 5.633 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001672/0.1213, allocations: 35.95 kB / 364.9 MB, free: 5.598 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.756e-05/0.1214, allocations: 28.72 kB / 365 MB, free: 5.566 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.546e-05/0.1215, allocations: 8.031 kB / 365 MB, free: 5.559 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009146/0.1224, allocations: 1.391 MB / 366.4 MB, free: 4.027 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.916e-06/0.1224, allocations: 7.922 kB / 366.4 MB, free: 4.02 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006945/0.1231, allocations: 270.4 kB / 366.6 MB, free: 3.73 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.684e-05/0.1232, allocations: 108.7 kB / 366.7 MB, free: 3.605 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.796e-05/0.1232, allocations: 4 kB / 366.7 MB, free: 3.602 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002246/0.1235, allocations: 23.97 kB / 366.8 MB, free: 3.578 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.58e-05/0.1235, allocations: 27.91 kB / 366.8 MB, free: 3.551 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.269e-05/0.1236, allocations: 4 kB / 366.8 MB, free: 3.547 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002177/0.1238, allocations: 231.1 kB / 367 MB, free: 3.32 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1238, allocations: 0 / 367 MB, free: 3.32 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003387/0.1241, allocations: 63.94 kB / 367.1 MB, free: 3.258 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.0001286/0.1243, allocations: 107.7 kB / 367.2 MB, free: 3.141 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.000916/0.1252, allocations: 410.5 kB / 367.6 MB, free: 2.715 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.456e-06/0.1252, allocations: 8.125 kB / 367.6 MB, free: 2.707 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004524/0.1257, allocations: 214.6 kB / 367.8 MB, free: 2.484 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003295/0.126, allocations: 52.59 kB / 367.9 MB, free: 2.434 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009371/0.127, allocations: 472.3 kB / 368.3 MB, free: 1.945 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002729/0.1272, allocations: 0.7518 MB / 369.1 MB, free: 1.164 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001127/0.1274, allocations: 34.97 kB / 369.1 MB, free: 1.133 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.759e-05/0.1274, allocations: 27.44 kB / 369.1 MB, free: 1.109 MB / 302.1 MB Notification: Performance of SimCode: time 2.3e-07/0.1275, allocations: 0 / 369.1 MB, free: 1.109 MB / 302.1 MB Notification: Performance of Templates: time 0.1547/0.2822, allocations: 3.204 MB / 372.3 MB, free: 25.01 MB / 302.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 -s gbode -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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/OpAmps/Comparator/Comparator.csv","/var/lib/jenkins1/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