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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.0009274/0.0009274, allocations: 76.81 kB / 22.28 MB, free: 2.211 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.0009558/0.0009558, allocations: 162.4 kB / 25.69 MB, free: 7.918 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 0.8265/0.8265, allocations: 158.6 MB / 187.6 MB, free: 2.789 MB / 170.7 MB " [Timeout remaining time 179] 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.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(Modelica.Electrical.Analog.Examples.OpAmps.Comparator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,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=1000,variableFilter="time|opAmp.out.v|opAmp.out.i",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OpAmps.Comparator") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.113e-06/1.113e-06, allocations: 0 / 251.6 MB, free: 7.234 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.364e-05/1.475e-05, allocations: 6.25 kB / 251.6 MB, free: 7.227 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.Comparator): time 0.002545/0.00256, allocations: 2.798 MB / 254.4 MB, free: 4.41 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.0008807/0.003441, allocations: 0.7601 MB / 255.1 MB, free: 3.641 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001053/0.003546, allocations: 4 kB / 255.1 MB, free: 3.637 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001353/0.003681, allocations: 47.5 kB / 255.2 MB, free: 3.59 MB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001428/0.003824, allocations: 111 kB / 255.3 MB, free: 3.48 MB / 234.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002159/0.00404, allocations: 107.8 kB / 255.4 MB, free: 3.375 MB / 234.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002891/0.004329, allocations: 410.1 kB / 255.8 MB, free: 2.973 MB / 234.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001411/0.00447, allocations: 103 kB / 255.9 MB, free: 2.871 MB / 234.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001827/0.004653, allocations: 219.5 kB / 256.1 MB, free: 2.656 MB / 234.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001427/0.004796, allocations: 139.6 kB / 256.2 MB, free: 2.516 MB / 234.7 MB Notification: Performance of NFPackage.collectConstants: time 4.128e-05/0.004837, allocations: 36 kB / 256.3 MB, free: 2.48 MB / 234.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.18e-05/0.004869, allocations: 36 kB / 256.3 MB, free: 2.445 MB / 234.7 MB Notification: Performance of NFScalarize.scalarize: time 5.246e-05/0.004921, allocations: 83.66 kB / 256.4 MB, free: 2.363 MB / 234.7 MB Notification: Performance of NFVerifyModel.verify: time 8.085e-05/0.005002, allocations: 119.7 kB / 256.5 MB, free: 2.246 MB / 234.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002128/0.005215, allocations: 251.1 kB / 256.8 MB, free: 2 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.593e-06/0.005216, allocations: 0 / 256.8 MB, free: 2 MB / 234.7 MB Notification: Performance of FrontEnd: time 6.32e-07/0.005217, allocations: 0 / 256.8 MB, free: 2 MB / 234.7 MB Notification: Performance of Transformations before backend: time 3.045e-06/0.00522, allocations: 0 / 256.8 MB, free: 2 MB / 234.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.0008622/0.006082, allocations: 0.5648 MB / 257.3 MB, free: 1.406 MB / 234.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.859e-05/0.006111, allocations: 8.031 kB / 257.3 MB, free: 1.398 MB / 234.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.404e-05/0.006165, allocations: 44.84 kB / 257.4 MB, free: 1.355 MB / 234.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001832/0.006348, allocations: 189.3 kB / 257.6 MB, free: 1.145 MB / 234.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.662e-05/0.006365, allocations: 24.86 kB / 257.6 MB, free: 1.121 MB / 234.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.472e-05/0.006389, allocations: 24.38 kB / 257.6 MB, free: 1.098 MB / 234.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002318/0.006621, allocations: 205.3 kB / 257.8 MB, free: 0.8867 MB / 234.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.875e-06/0.006629, allocations: 192 / 257.8 MB, free: 0.8867 MB / 234.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.612e-05/0.006645, allocations: 16.31 kB / 257.8 MB, free: 0.8711 MB / 234.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.974e-06/0.006652, allocations: 7.938 kB / 257.8 MB, free: 0.8633 MB / 234.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.449e-05/0.006747, allocations: 67.47 kB / 257.9 MB, free: 0.7969 MB / 234.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007345/0.007481, allocations: 0.7358 MB / 258.6 MB, free: 8 kB / 234.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001484/0.007629, allocations: 78.47 kB / 258.7 MB, free: 15.92 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.035e-05/0.00766, allocations: 24.84 kB / 258.7 MB, free: 15.89 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.22e-05/0.007672, allocations: 0 / 258.7 MB, free: 15.89 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001019/0.007774, allocations: 96.98 kB / 258.8 MB, free: 15.78 MB / 250.7 MB Notification: Performance of pre-optimization done (n=11): time 8.01e-07/0.007775, allocations: 0 / 258.8 MB, free: 15.78 MB / 250.7 MB Notification: Performance of matching and sorting (n=11): time 0.0002469/0.008022, allocations: 122.4 kB / 258.9 MB, free: 15.65 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.28e-05/0.008054, allocations: 81.11 kB / 259 MB, free: 15.55 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000142/0.008196, allocations: 272.9 kB / 259.3 MB, free: 15.27 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 1.568e-05/0.008212, allocations: 25.7 kB / 259.3 MB, free: 15.24 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.202e-05/0.008284, allocations: 196.4 kB / 259.5 MB, free: 15.04 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.182e-05/0.008306, allocations: 39.67 kB / 259.5 MB, free: 15 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.47e-05/0.008361, allocations: 57.91 kB / 259.6 MB, free: 14.94 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 7.187e-05/0.008432, allocations: 338.7 kB / 259.9 MB, free: 14.6 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.196e-05/0.008484, allocations: 59.25 kB / 260 MB, free: 14.54 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.018e-05/0.008575, allocations: 155.8 kB / 260.1 MB, free: 14.33 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001325/0.008707, allocations: 202 kB / 260.3 MB, free: 14.08 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.745e-06/0.00871, allocations: 8 kB / 260.4 MB, free: 14.07 MB / 250.7 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0001962/0.008906, allocations: 229.5 kB / 260.6 MB, free: 13.82 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.237e-05/0.008928, allocations: 33.7 kB / 260.6 MB, free: 13.79 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.54e-06/0.008934, allocations: 4.469 kB / 260.6 MB, free: 13.78 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001541/0.009088, allocations: 48.81 kB / 260.7 MB, free: 13.73 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001133/0.009201, allocations: 55.84 kB / 260.7 MB, free: 13.68 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005245/0.009726, allocations: 1.174 MB / 261.9 MB, free: 12.42 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001162/0.009842, allocations: 39.83 kB / 261.9 MB, free: 12.38 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.421e-05/0.009856, allocations: 8 kB / 261.9 MB, free: 12.37 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 7.606e-05/0.009932, allocations: 130.1 kB / 262.1 MB, free: 12.23 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 8.276e-05/0.01001, allocations: 167.7 kB / 262.2 MB, free: 12.02 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0001206/0.01014, allocations: 207.1 kB / 262.4 MB, free: 11.76 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.193e-06/0.01014, allocations: 0 / 262.4 MB, free: 11.76 MB / 250.7 MB Notification: Performance of matching and sorting (n=29) (initialization_lambda0): time 0.0001883/0.01033, allocations: 241.4 kB / 262.7 MB, free: 11.5 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.622e-05/0.01034, allocations: 34.17 kB / 262.7 MB, free: 11.46 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.436e-06/0.01034, allocations: 8 kB / 262.7 MB, free: 11.46 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001044/0.01045, allocations: 40.81 kB / 262.7 MB, free: 11.41 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.202e-05/0.01054, allocations: 55.91 kB / 262.8 MB, free: 11.36 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004442/0.01099, allocations: 1.174 MB / 264 MB, free: 10.09 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.518e-05/0.01108, allocations: 23.88 kB / 264 MB, free: 10.07 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.168e-05/0.01109, allocations: 12 kB / 264 MB, free: 10.06 MB / 250.7 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.0003257/0.01142, allocations: 196.1 kB / 264.2 MB, free: 9.859 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.143e-05/0.01144, allocations: 19.97 kB / 264.2 MB, free: 9.84 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.098e-05/0.01147, allocations: 21.88 kB / 264.2 MB, free: 9.82 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.102e-06/0.01147, allocations: 4 kB / 264.2 MB, free: 9.816 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.767e-06/0.01148, allocations: 7.984 kB / 264.3 MB, free: 9.809 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.286e-06/0.01148, allocations: 0 / 264.3 MB, free: 9.809 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000191/0.01167, allocations: 263.5 kB / 264.5 MB, free: 9.523 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.836e-06/0.01167, allocations: 7.938 kB / 264.5 MB, free: 9.516 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.266e-05/0.01173, allocations: 19.98 kB / 264.5 MB, free: 9.496 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.955e-05/0.01182, allocations: 36.86 kB / 264.6 MB, free: 9.457 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.614e-06/0.01183, allocations: 3.984 kB / 264.6 MB, free: 9.453 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004309/0.01226, allocations: 1.166 MB / 265.7 MB, free: 8.195 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.542e-06/0.01226, allocations: 4 kB / 265.7 MB, free: 8.191 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001158/0.01238, allocations: 130.8 kB / 265.9 MB, free: 8.039 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.232e-05/0.0124, allocations: 23.8 kB / 265.9 MB, free: 8.016 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.558e-05/0.01243, allocations: 3.984 kB / 265.9 MB, free: 8.012 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.886e-05/0.0125, allocations: 15.98 kB / 265.9 MB, free: 7.996 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.014e-05/0.01254, allocations: 19.97 kB / 265.9 MB, free: 7.977 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.241e-06/0.01254, allocations: 3.984 kB / 265.9 MB, free: 7.973 MB / 250.7 MB Notification: Performance of sorting global known variables: time 6.11e-05/0.0126, allocations: 86.78 kB / 266 MB, free: 7.887 MB / 250.7 MB Notification: Performance of sort global known variables: time 4e-08/0.0126, allocations: 0 / 266 MB, free: 7.887 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0002531/0.01286, allocations: 135.7 kB / 266.2 MB, free: 7.754 MB / 250.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 (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 7.086e-05/0.01293, allocations: 88.41 kB / 266.2 MB, free: 7.66 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.0004041/0.01333, allocations: 0.5679 MB / 266.8 MB, free: 7.027 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 5.611e-06/0.01334, allocations: 0 / 266.8 MB, free: 7.027 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001091/0.01345, allocations: 155.4 kB / 267 MB, free: 6.859 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001443/0.01359, allocations: 48.39 kB / 267 MB, free: 6.812 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00058/0.01417, allocations: 446.3 kB / 267.4 MB, free: 6.348 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.994e-05/0.01421, allocations: 88.56 kB / 267.5 MB, free: 6.242 MB / 250.7 MB Notification: Performance of simCode: alias equations: time 7.937e-05/0.01429, allocations: 34.28 kB / 267.6 MB, free: 6.211 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001075/0.0144, allocations: 95.34 kB / 267.7 MB, free: 6.117 MB / 250.7 MB Notification: Performance of SimCode: time 5.01e-07/0.0144, allocations: 0 / 267.7 MB, free: 6.117 MB / 250.7 MB Notification: Performance of Templates: time 0.005319/0.01972, allocations: 3.889 MB / 271.6 MB, free: 2.262 MB / 250.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.makefile [Timeout 660] (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=240 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OpAmps.Comparator_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Analog/Examples/OpAmps/Comparator/Comparator.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.438016853760928]