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.001081/0.001081, allocations: 110.9 kB / 17.75 MB, free: 5.332 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.001154/0.001154, allocations: 186.6 kB / 18.68 MB, free: 4.41 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.315/1.315, allocations: 222.9 MB / 242.4 MB, free: 15.09 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009661/0.0009662, allocations: 47.92 kB / 352 MB, free: 3.191 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.223/0.224, allocations: 49.44 MB / 401.5 MB, free: 8.723 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.Comparator): time 0.004271/0.2283, allocations: 2.884 MB / 404.3 MB, free: 5.941 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001366/0.2297, allocations: 0.6973 MB / 405 MB, free: 5.238 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002373/0.2299, allocations: 8 kB / 405 MB, free: 5.23 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002121/0.2302, allocations: 47.52 kB / 405.1 MB, free: 5.184 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002871/0.2305, allocations: 99.17 kB / 405.2 MB, free: 5.086 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003539/0.2308, allocations: 111.8 kB / 405.3 MB, free: 4.977 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.000541/0.2314, allocations: 394.5 kB / 405.7 MB, free: 4.59 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002388/0.2316, allocations: 131.9 kB / 405.8 MB, free: 4.457 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002393/0.2319, allocations: 151.4 kB / 406 MB, free: 4.309 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002322/0.2321, allocations: 175.2 kB / 406.1 MB, free: 4.137 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 6.757e-05/0.2322, allocations: 36 kB / 406.2 MB, free: 4.102 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.811e-05/0.2323, allocations: 36 kB / 406.2 MB, free: 4.066 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 7.145e-05/0.2323, allocations: 79.69 kB / 406.3 MB, free: 3.988 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001776/0.2325, allocations: 167.1 kB / 406.4 MB, free: 3.824 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004533/0.233, allocations: 391.8 kB / 406.8 MB, free: 3.445 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.677e-06/0.233, allocations: 4 kB / 406.8 MB, free: 3.441 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.353e-06/0.233, allocations: 0 / 406.8 MB, free: 3.441 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.369e-05/0.233, allocations: 0 / 406.8 MB, free: 3.441 MB / 318.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.001479/0.2345, allocations: 0.6809 MB / 407.5 MB, free: 2.707 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.187e-05/0.2346, allocations: 8.031 kB / 407.5 MB, free: 2.699 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.72e-05/0.2347, allocations: 40.45 kB / 407.6 MB, free: 2.66 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004505/0.2351, allocations: 295.5 kB / 407.8 MB, free: 2.332 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.422e-05/0.2352, allocations: 24.92 kB / 407.9 MB, free: 2.309 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.941e-05/0.2352, allocations: 24.38 kB / 407.9 MB, free: 2.285 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007005/0.2359, allocations: 327.9 kB / 408.2 MB, free: 1.957 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.058e-05/0.2359, allocations: 0 / 408.2 MB, free: 1.957 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.997e-05/0.236, allocations: 12 kB / 408.2 MB, free: 1.945 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.314e-06/0.236, allocations: 4 kB / 408.2 MB, free: 1.941 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008119/0.2368, allocations: 278 kB / 408.5 MB, free: 1.668 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001918/0.2387, allocations: 1.126 MB / 409.6 MB, free: 464 kB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008301/0.2396, allocations: 214.5 kB / 409.8 MB, free: 240 kB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003164/0.2399, allocations: 84.8 kB / 409.9 MB, free: 152 kB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.607e-05/0.2399, allocations: 0 / 409.9 MB, free: 152 kB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004554/0.2404, allocations: 165 kB / 410.1 MB, free: 15.97 MB / 334.1 MB Notification: Performance of pre-optimization done (n=10): time 3.566e-06/0.2404, allocations: 192 / 410.1 MB, free: 15.97 MB / 334.1 MB Notification: Performance of matching and sorting (n=10): time 0.001324/0.2418, allocations: 415 kB / 410.5 MB, free: 15.54 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.283e-05/0.2418, allocations: 77.11 kB / 410.6 MB, free: 15.44 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003672/0.2422, allocations: 328.4 kB / 410.9 MB, free: 15.11 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.671e-05/0.2422, allocations: 29.7 kB / 410.9 MB, free: 15.08 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001563/0.2424, allocations: 215.5 kB / 411.1 MB, free: 14.86 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.569e-05/0.2424, allocations: 35.55 kB / 411.2 MB, free: 14.83 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.634e-05/0.2425, allocations: 49.84 kB / 411.2 MB, free: 14.77 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001273/0.2427, allocations: 338.8 kB / 411.5 MB, free: 14.43 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003735/0.2431, allocations: 100.1 kB / 411.6 MB, free: 14.33 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004296/0.2435, allocations: 218.9 kB / 411.8 MB, free: 14.06 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000793/0.2443, allocations: 323.9 kB / 412.2 MB, free: 13.69 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.815e-06/0.2443, allocations: 12.38 kB / 412.2 MB, free: 13.68 MB / 334.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0009629/0.2453, allocations: 403 kB / 412.6 MB, free: 13.27 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.763e-05/0.2453, allocations: 33.7 kB / 412.6 MB, free: 13.23 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.096e-05/0.2454, allocations: 4 kB / 412.6 MB, free: 13.23 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001781/0.2455, allocations: 40.95 kB / 412.6 MB, free: 13.18 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002789/0.2458, allocations: 63.89 kB / 412.7 MB, free: 13.12 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001104/0.247, allocations: 1.414 MB / 414.1 MB, free: 11.56 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003669/0.2473, allocations: 59.5 kB / 414.2 MB, free: 11.5 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.853e-05/0.2474, allocations: 12 kB / 414.2 MB, free: 11.49 MB / 334.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.0001525/0.2475, allocations: 149.9 kB / 414.3 MB, free: 11.33 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.126e-05/0.2476, allocations: 23.72 kB / 414.4 MB, free: 11.31 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.232e-05/0.2476, allocations: 30.61 kB / 414.4 MB, free: 11.28 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.807e-06/0.2476, allocations: 0 / 414.4 MB, free: 11.28 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.693e-06/0.2477, allocations: 0 / 414.4 MB, free: 11.28 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.324e-05/0.2477, allocations: 112.7 kB / 414.5 MB, free: 11.15 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.276e-05/0.2478, allocations: 0 / 414.5 MB, free: 11.15 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002545/0.2481, allocations: 31.97 kB / 414.5 MB, free: 11.12 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.383e-05/0.2481, allocations: 27.84 kB / 414.6 MB, free: 11.09 MB / 334.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0009872/0.2491, allocations: 400.8 kB / 414.9 MB, free: 10.69 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.001133/0.2503, allocations: 0.5562 MB / 415.5 MB, free: 10.11 MB / 334.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0003346/0.2506, allocations: 87.95 kB / 415.6 MB, free: 10.03 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002909/0.2509, allocations: 231.1 kB / 415.8 MB, free: 9.805 MB / 334.1 MB Notification: Performance of Backend: time 1.173e-06/0.2509, allocations: 0 / 415.8 MB, free: 9.805 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001244/0.2522, allocations: 412.3 kB / 416.2 MB, free: 9.371 MB / 334.1 MB Notification: Performance of SimCode: time 0.001218/0.2534, allocations: 0.9227 MB / 417.1 MB, free: 8.402 MB / 334.1 MB Notification: Performance of Templates: time 0.007702/0.2611, allocations: 3.635 MB / 420.8 MB, free: 4.801 MB / 334.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 -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