Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3.2.3_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_3.2.3_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.00144/0.00144, allocations: 108 kB / 18.4 MB, free: 4.703 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.001496/0.001496, allocations: 194.3 kB / 19.33 MB, free: 3.781 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.426/1.426, allocations: 205.1 MB / 225.2 MB, free: 12.23 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001341/0.001341, allocations: 47.94 kB / 329.2 MB, free: 3.273 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0941/0.09545, allocations: 46.6 MB / 375.8 MB, free: 4.562 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.Comparator): time 0.004506/0.1, allocations: 2.852 MB / 378.7 MB, free: 1.695 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001635/0.1017, allocations: 0.7523 MB / 379.4 MB, free: 0.9336 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003064/0.102, allocations: 4 kB / 379.4 MB, free: 0.9297 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002277/0.1023, allocations: 51.5 kB / 379.5 MB, free: 0.8789 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003572/0.1026, allocations: 95.19 kB / 379.6 MB, free: 0.7852 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003623/0.103, allocations: 111.8 kB / 379.7 MB, free: 0.6758 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005489/0.1036, allocations: 394.3 kB / 380.1 MB, free: 296 kB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002643/0.1038, allocations: 135.8 kB / 380.2 MB, free: 160 kB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002507/0.1041, allocations: 151.5 kB / 380.4 MB, free: 8 kB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.2013/0.3054, allocations: 172.1 kB / 380.5 MB, free: 10.05 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001204/0.3055, allocations: 37.12 kB / 380.6 MB, free: 10.05 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.187e-05/0.3056, allocations: 37.12 kB / 380.6 MB, free: 10.05 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 8.971e-05/0.3057, allocations: 76.17 kB / 380.7 MB, free: 10.05 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002159/0.3059, allocations: 176.1 kB / 380.9 MB, free: 10.01 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000544/0.3065, allocations: 396 kB / 381.2 MB, free: 9.965 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.184e-06/0.3065, allocations: 7.641 kB / 381.2 MB, free: 9.961 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.354e-06/0.3065, allocations: 0 / 381.2 MB, free: 9.961 MB / 318.1 MB Notification: Performance of Transformations before backend: time 7.574e-06/0.3065, allocations: 0 / 381.2 MB, free: 9.961 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.001284/0.3078, allocations: 0.6772 MB / 381.9 MB, free: 9.484 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.892e-05/0.3079, allocations: 9.5 kB / 381.9 MB, free: 9.484 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.21e-05/0.308, allocations: 35.5 kB / 382 MB, free: 9.469 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003914/0.3083, allocations: 301.1 kB / 382.3 MB, free: 9.238 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.314e-05/0.3084, allocations: 17.53 kB / 382.3 MB, free: 9.238 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.43e-05/0.3084, allocations: 24.11 kB / 382.3 MB, free: 9.238 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006333/0.3091, allocations: 284.7 kB / 382.6 MB, free: 9.203 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.232e-05/0.3091, allocations: 7.438 kB / 382.6 MB, free: 9.199 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.025e-05/0.3091, allocations: 10.14 kB / 382.6 MB, free: 9.199 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.016e-05/0.3091, allocations: 7.453 kB / 382.6 MB, free: 9.199 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008123/0.31, allocations: 285.5 kB / 382.9 MB, free: 9.195 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001785/0.3118, allocations: 1.046 MB / 383.9 MB, free: 8.711 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006789/0.3124, allocations: 202.6 kB / 384.1 MB, free: 8.684 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002523/0.3127, allocations: 83.73 kB / 384.2 MB, free: 8.676 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.359e-05/0.3127, allocations: 1.375 kB / 384.2 MB, free: 8.676 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003994/0.3131, allocations: 158.2 kB / 384.4 MB, free: 8.605 MB / 318.1 MB Notification: Performance of pre-optimization done (n=11): time 1.132e-06/0.3132, allocations: 0 / 384.4 MB, free: 8.605 MB / 318.1 MB Notification: Performance of matching and sorting (n=11): time 0.001089/0.3143, allocations: 396.8 kB / 384.8 MB, free: 8.453 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.615e-05/0.3143, allocations: 79.16 kB / 384.8 MB, free: 8.359 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003691/0.3147, allocations: 328.5 kB / 385.1 MB, free: 8.242 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.952e-05/0.3147, allocations: 27.5 kB / 385.2 MB, free: 8.211 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000118/0.3148, allocations: 210.4 kB / 385.4 MB, free: 8.078 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.225e-05/0.3149, allocations: 37.75 kB / 385.4 MB, free: 8.055 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.344e-05/0.315, allocations: 53.28 kB / 385.5 MB, free: 8.039 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 8.235e-05/0.3151, allocations: 335 kB / 385.8 MB, free: 7.727 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000304/0.3154, allocations: 99.78 kB / 385.9 MB, free: 7.719 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003287/0.3157, allocations: 198.7 kB / 386.1 MB, free: 7.59 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005734/0.3163, allocations: 316.5 kB / 386.4 MB, free: 7.422 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.306e-06/0.3163, allocations: 0 / 386.4 MB, free: 7.422 MB / 318.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0008365/0.3171, allocations: 397.3 kB / 386.8 MB, free: 7.312 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.431e-05/0.3172, allocations: 34.23 kB / 386.8 MB, free: 7.281 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.884e-06/0.3172, allocations: 3.781 kB / 386.8 MB, free: 7.281 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001866/0.3174, allocations: 34.38 kB / 386.9 MB, free: 7.266 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002475/0.3177, allocations: 64.22 kB / 386.9 MB, free: 7.262 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007917/0.3185, allocations: 1.397 MB / 388.3 MB, free: 5.848 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003169/0.3188, allocations: 60.62 kB / 388.4 MB, free: 5.816 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.972e-05/0.3188, allocations: 15.67 kB / 388.4 MB, free: 5.812 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0003108/0.3191, allocations: 188 kB / 388.6 MB, free: 5.695 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0002948/0.3194, allocations: 185 kB / 388.8 MB, free: 5.539 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.000502/0.32, allocations: 292.7 kB / 389 MB, free: 5.328 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 3.417e-06/0.32, allocations: 1.844 kB / 389 MB, free: 5.328 MB / 318.1 MB Notification: Performance of matching and sorting (n=29) (initialization_lambda0): time 0.0007501/0.3207, allocations: 360.1 kB / 389.4 MB, free: 5.18 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.433e-05/0.3208, allocations: 38.67 kB / 389.4 MB, free: 5.145 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.332e-06/0.3208, allocations: 4.266 kB / 389.4 MB, free: 5.145 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001/0.3209, allocations: 30.3 kB / 389.5 MB, free: 5.133 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000238/0.3211, allocations: 52.86 kB / 389.5 MB, free: 5.133 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007024/0.3218, allocations: 1.406 MB / 390.9 MB, free: 3.723 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002783/0.3221, allocations: 46.16 kB / 391 MB, free: 3.699 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.38e-05/0.3222, allocations: 15.39 kB / 391 MB, free: 3.695 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * 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.0001127/0.3223, allocations: 199.7 kB / 391.2 MB, free: 3.504 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.445e-05/0.3223, allocations: 27.16 kB / 391.2 MB, free: 3.488 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.024e-05/0.3224, allocations: 29.81 kB / 391.2 MB, free: 3.465 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.888e-06/0.3224, allocations: 3.516 kB / 391.2 MB, free: 3.465 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.439e-06/0.3224, allocations: 0 / 391.2 MB, free: 3.465 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.729e-06/0.3224, allocations: 2.297 kB / 391.2 MB, free: 3.465 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004562/0.3229, allocations: 458.7 kB / 391.7 MB, free: 3.086 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.573e-06/0.3229, allocations: 1.469 kB / 391.7 MB, free: 3.086 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001543/0.323, allocations: 28.14 kB / 391.7 MB, free: 3.086 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.136e-05/0.3231, allocations: 25.58 kB / 391.7 MB, free: 3.074 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.616e-05/0.3232, allocations: 10.25 kB / 391.8 MB, free: 3.066 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006628/0.3238, allocations: 1.398 MB / 393.1 MB, free: 1.66 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.773e-06/0.3238, allocations: 1.406 kB / 393.2 MB, free: 1.66 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006322/0.3245, allocations: 262.3 kB / 393.4 MB, free: 1.523 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.836e-05/0.3245, allocations: 103.1 kB / 393.5 MB, free: 1.414 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.081e-05/0.3246, allocations: 11.58 kB / 393.5 MB, free: 1.406 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002064/0.3248, allocations: 21.05 kB / 393.5 MB, free: 1.406 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.322e-05/0.3249, allocations: 24.58 kB / 393.6 MB, free: 1.398 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.243e-05/0.3249, allocations: 3.625 kB / 393.6 MB, free: 1.398 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0002368/0.3251, allocations: 230.7 kB / 393.8 MB, free: 1.27 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3252, allocations: 0 / 393.8 MB, free: 1.27 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0005188/0.3257, allocations: 127 kB / 393.9 MB, free: 1.246 MB / 318.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 (10): * Single equations (assignments): 7 * 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.0001343/0.3258, allocations: 106.6 kB / 394 MB, free: 1.148 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001272/0.3271, allocations: 0.6958 MB / 394.7 MB, free: 0.7109 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.635e-06/0.3271, allocations: 0 / 394.7 MB, free: 0.7109 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003804/0.3275, allocations: 202 kB / 394.9 MB, free: 0.582 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003457/0.3279, allocations: 55.88 kB / 395 MB, free: 0.5586 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009263/0.3288, allocations: 0.4992 MB / 395.5 MB, free: 240 kB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003427/0.3291, allocations: 0.7561 MB / 396.2 MB, free: 15.53 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.04e-05/0.3292, allocations: 27.88 kB / 396.3 MB, free: 15.53 MB / 334.1 MB Notification: Performance of SimCode: time 2.1e-07/0.3292, allocations: 0 / 396.3 MB, free: 15.53 MB / 334.1 MB Notification: Performance of Templates: time 0.008083/0.3373, allocations: 4.721 MB / 401 MB, free: 14.66 MB / 334.1 MB make -j1 -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.makefile (rm -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.sim & ./Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OpAmps.Comparator -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OpAmps.Comparator_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Analog/Examples/OpAmps/Comparator/Comparator.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches