Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.conf.json loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 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_trunk_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_trunk_Modelica.Electrical.Analog.Examples.OpAmps.Comparator") Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001076/0.001076, allocations: 192.3 kB / 17.43 MB, free: 4.398 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.592/1.592, allocations: 229.5 MB / 247.7 MB, free: 6.324 MB / 202.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001054/0.001054, allocations: 96.27 kB / 299.9 MB, free: 5.34 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003736/0.0003738, allocations: 8 kB / 360.7 MB, free: 8.461 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2876/0.288, allocations: 51.41 MB / 412.1 MB, free: 25.9 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.Comparator): time 0.002606/0.2906, allocations: 2.47 MB / 414.5 MB, free: 23.42 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001145/0.2918, allocations: 0.9395 MB / 415.5 MB, free: 22.43 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001467/0.292, allocations: 4 kB / 415.5 MB, free: 22.42 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000146/0.2921, allocations: 37.97 kB / 415.5 MB, free: 22.39 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001683/0.2923, allocations: 79.39 kB / 415.6 MB, free: 22.31 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000268/0.2926, allocations: 104.5 kB / 415.7 MB, free: 22.21 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003066/0.2929, allocations: 362.5 kB / 416 MB, free: 21.85 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002105/0.2931, allocations: 121 kB / 416.2 MB, free: 21.73 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001218/0.2932, allocations: 127.4 kB / 416.3 MB, free: 21.61 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001689/0.2934, allocations: 151.2 kB / 416.4 MB, free: 21.46 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 4.03e-05/0.2935, allocations: 20 kB / 416.5 MB, free: 21.44 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.21e-05/0.2935, allocations: 16 kB / 416.5 MB, free: 21.42 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 5.313e-05/0.2936, allocations: 59.69 kB / 416.5 MB, free: 21.36 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001401/0.2937, allocations: 172.8 kB / 416.7 MB, free: 21.19 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003747/0.2941, allocations: 368.2 kB / 417.1 MB, free: 20.83 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 8.737e-06/0.2941, allocations: 3.938 kB / 417.1 MB, free: 20.82 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.064e-06/0.2941, allocations: 0 / 417.1 MB, free: 20.82 MB / 298.7 MB Notification: Performance of Transformations before backend: time 8.456e-06/0.2941, allocations: 0 / 417.1 MB, free: 20.82 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.00123/0.2954, allocations: 0.6537 MB / 417.7 MB, free: 20.11 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.029e-05/0.2954, allocations: 8.031 kB / 417.7 MB, free: 20.11 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.464e-05/0.2955, allocations: 32.56 kB / 417.8 MB, free: 20.07 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003027/0.2958, allocations: 291.5 kB / 418 MB, free: 19.75 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.194e-05/0.2958, allocations: 20.94 kB / 418.1 MB, free: 19.73 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.048e-05/0.2959, allocations: 28.31 kB / 418.1 MB, free: 19.7 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006473/0.2965, allocations: 339.9 kB / 418.4 MB, free: 19.36 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.384e-05/0.2966, allocations: 0 / 418.4 MB, free: 19.36 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.041e-05/0.2966, allocations: 8 kB / 418.4 MB, free: 19.35 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.757e-06/0.2966, allocations: 8 kB / 418.4 MB, free: 19.34 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00071/0.2973, allocations: 302.1 kB / 418.7 MB, free: 19.05 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001509/0.2988, allocations: 1.154 MB / 419.9 MB, free: 17.8 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007262/0.2996, allocations: 242.5 kB / 420.1 MB, free: 17.55 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002805/0.2999, allocations: 104.8 kB / 420.2 MB, free: 17.45 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.774e-05/0.2999, allocations: 4 kB / 420.2 MB, free: 17.45 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004174/0.3003, allocations: 181 kB / 420.4 MB, free: 17.25 MB / 298.7 MB Notification: Performance of pre-optimization done (n=10): time 1.193e-06/0.3003, allocations: 0 / 420.4 MB, free: 17.25 MB / 298.7 MB Notification: Performance of matching and sorting (n=10): time 0.001134/0.3015, allocations: 447.1 kB / 420.8 MB, free: 16.79 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.146e-05/0.3015, allocations: 89.08 kB / 420.9 MB, free: 16.68 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002784/0.3018, allocations: 324.4 kB / 421.2 MB, free: 16.36 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.864e-05/0.3019, allocations: 33.7 kB / 421.3 MB, free: 16.32 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.239e-05/0.3019, allocations: 211.4 kB / 421.5 MB, free: 16.11 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.29e-05/0.302, allocations: 35.55 kB / 421.5 MB, free: 16.07 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.247e-05/0.302, allocations: 4 kB / 421.5 MB, free: 16.07 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 7.9e-05/0.3021, allocations: 334.8 kB / 421.8 MB, free: 15.73 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003148/0.3024, allocations: 116.2 kB / 422 MB, free: 15.62 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003229/0.3027, allocations: 224.4 kB / 422.2 MB, free: 15.35 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005981/0.3033, allocations: 359.9 kB / 422.5 MB, free: 14.94 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.655e-06/0.3034, allocations: 4 kB / 422.5 MB, free: 14.93 MB / 298.7 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0008065/0.3042, allocations: 439.6 kB / 423 MB, free: 14.49 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.051e-05/0.3042, allocations: 33.7 kB / 423 MB, free: 14.45 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.666e-06/0.3042, allocations: 7.984 kB / 423 MB, free: 14.44 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001697/0.3044, allocations: 28.84 kB / 423 MB, free: 14.41 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002505/0.3047, allocations: 80.03 kB / 423.1 MB, free: 14.33 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006839/0.3054, allocations: 1.304 MB / 424.4 MB, free: 12.89 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003128/0.3057, allocations: 63.64 kB / 424.5 MB, free: 12.83 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.345e-05/0.3057, allocations: 8.094 kB / 424.5 MB, free: 12.82 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 ($whenCondition1,$PRE.vIn.signalSource.T_start,vIn.signalSource.T_start,$PRE.vIn.signalSource.count,vIn.signalSource.count) * 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.0001147/0.3058, allocations: 161.6 kB / 424.6 MB, free: 12.66 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.032e-05/0.3059, allocations: 27.62 kB / 424.7 MB, free: 12.63 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.813e-05/0.3059, allocations: 26.61 kB / 424.7 MB, free: 12.61 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.235e-06/0.3059, allocations: 4 kB / 424.7 MB, free: 12.6 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.166e-06/0.3059, allocations: 0 / 424.7 MB, free: 12.6 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.775e-06/0.3059, allocations: 0 / 424.7 MB, free: 12.6 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003369/0.3063, allocations: 459.1 kB / 425.1 MB, free: 12.09 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.502e-06/0.3063, allocations: 0 / 425.1 MB, free: 12.09 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001702/0.3065, allocations: 43.95 kB / 425.2 MB, free: 12.05 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.31e-05/0.3066, allocations: 28.78 kB / 425.2 MB, free: 12.02 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.368e-05/0.3066, allocations: 4.406 kB / 425.2 MB, free: 12.02 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005854/0.3072, allocations: 1.3 MB / 426.5 MB, free: 10.58 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.353e-06/0.3072, allocations: 3.938 kB / 426.5 MB, free: 10.58 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006419/0.3078, allocations: 306.3 kB / 426.8 MB, free: 10.25 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.011e-05/0.3079, allocations: 108.7 kB / 426.9 MB, free: 10.13 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.641e-05/0.3079, allocations: 7.984 kB / 426.9 MB, free: 10.12 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002165/0.3082, allocations: 35.97 kB / 427 MB, free: 10.09 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.711e-05/0.3082, allocations: 15.98 kB / 427 MB, free: 10.07 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.159e-05/0.3083, allocations: 7.984 kB / 427 MB, free: 10.06 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001729/0.3084, allocations: 227.1 kB / 427.2 MB, free: 9.844 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3084, allocations: 0 / 427.2 MB, free: 9.844 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002859/0.3087, allocations: 71.84 kB / 427.3 MB, free: 9.773 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.0001194/0.3089, allocations: 103.2 kB / 427.4 MB, free: 9.66 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0008553/0.3097, allocations: 442 kB / 427.8 MB, free: 9.203 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.973e-06/0.3097, allocations: 0 / 427.8 MB, free: 9.203 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004217/0.3102, allocations: 227.4 kB / 428 MB, free: 8.969 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003369/0.3105, allocations: 49 kB / 428.1 MB, free: 8.922 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008239/0.3113, allocations: 0.5814 MB / 428.7 MB, free: 8.309 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001589/0.3115, allocations: 0.756 MB / 429.4 MB, free: 7.527 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.0001272/0.3116, allocations: 30.97 kB / 429.5 MB, free: 7.5 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.292e-05/0.3117, allocations: 31.36 kB / 429.5 MB, free: 7.469 MB / 298.7 MB Notification: Performance of SimCode: time 3.81e-07/0.3117, allocations: 4 kB / 429.5 MB, free: 7.465 MB / 298.7 MB Notification: Performance of Templates: time 0.005771/0.3175, allocations: 2.958 MB / 432.5 MB, free: 4.523 MB / 298.7 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.makefile (rm -f Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.sim & ./Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.Comparator -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.pipe 2>&1) diffSimulationResults("Modelica_trunk_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","../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches