Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/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(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001148/0.001148, allocations: 207.3 kB / 17.99 MB, free: 3.777 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.297/1.297, allocations: 226.7 MB / 245.5 MB, free: 6.973 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009707/0.0009707, allocations: 110.4 kB / 296.7 MB, free: 6.465 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0008864/0.0008864, allocations: 51.92 kB / 356.6 MB, free: 10.58 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2071/0.208, allocations: 50.46 MB / 407.1 MB, free: 27.8 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.Comparator): time 0.003151/0.2112, allocations: 2.938 MB / 410 MB, free: 24.86 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0009556/0.2122, allocations: 0.7346 MB / 410.7 MB, free: 24.12 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001239/0.2123, allocations: 6.812 kB / 410.7 MB, free: 24.12 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001626/0.2125, allocations: 39.69 kB / 410.8 MB, free: 24.08 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001512/0.2126, allocations: 75.39 kB / 410.9 MB, free: 24.01 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002199/0.2129, allocations: 99.91 kB / 411 MB, free: 23.91 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002383/0.2131, allocations: 370.5 kB / 411.3 MB, free: 23.55 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001715/0.2133, allocations: 111.6 kB / 411.4 MB, free: 23.43 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001138/0.2134, allocations: 147.3 kB / 411.6 MB, free: 23.29 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001376/0.2136, allocations: 155.3 kB / 411.7 MB, free: 23.14 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 4.357e-05/0.2136, allocations: 24 kB / 411.7 MB, free: 23.11 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.4e-05/0.2137, allocations: 20 kB / 411.8 MB, free: 23.09 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 4.504e-05/0.2137, allocations: 71.67 kB / 411.8 MB, free: 23.02 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001048/0.2138, allocations: 159.1 kB / 412 MB, free: 22.87 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000228/0.2141, allocations: 368.3 kB / 412.4 MB, free: 22.51 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.028e-06/0.2141, allocations: 0 / 412.4 MB, free: 22.51 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.213e-06/0.2141, allocations: 0 / 412.4 MB, free: 22.51 MB / 298.7 MB Notification: Performance of Transformations before backend: time 5.881e-06/0.2141, allocations: 4 kB / 412.4 MB, free: 22.5 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.001109/0.2152, allocations: 0.6808 MB / 413 MB, free: 21.77 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.241e-05/0.2152, allocations: 16.59 kB / 413.1 MB, free: 21.75 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.129e-05/0.2153, allocations: 36.5 kB / 413.1 MB, free: 21.71 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002525/0.2156, allocations: 303.5 kB / 413.4 MB, free: 21.38 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.734e-05/0.2156, allocations: 16.94 kB / 413.4 MB, free: 21.36 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.658e-05/0.2156, allocations: 24.38 kB / 413.4 MB, free: 21.34 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005804/0.2162, allocations: 331.9 kB / 413.7 MB, free: 21 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.004e-05/0.2162, allocations: 0 / 413.7 MB, free: 21 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.409e-05/0.2163, allocations: 8 kB / 413.8 MB, free: 20.99 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.173e-06/0.2163, allocations: 8 kB / 413.8 MB, free: 20.98 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007014/0.217, allocations: 274.1 kB / 414 MB, free: 20.72 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001405/0.2184, allocations: 1.138 MB / 415.2 MB, free: 19.49 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007225/0.2191, allocations: 206.5 kB / 415.4 MB, free: 19.28 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002808/0.2194, allocations: 84.78 kB / 415.5 MB, free: 19.2 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.1e-05/0.2195, allocations: 4 kB / 415.5 MB, free: 19.19 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004059/0.2199, allocations: 157.1 kB / 415.6 MB, free: 19.02 MB / 298.7 MB Notification: Performance of pre-optimization done (n=10): time 2.014e-06/0.2199, allocations: 0 / 415.6 MB, free: 19.02 MB / 298.7 MB Notification: Performance of matching and sorting (n=10): time 0.001112/0.221, allocations: 419 kB / 416 MB, free: 18.58 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.471e-05/0.221, allocations: 77.11 kB / 416.1 MB, free: 18.49 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000245/0.2213, allocations: 336.4 kB / 416.4 MB, free: 18.16 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.436e-05/0.2213, allocations: 29.7 kB / 416.5 MB, free: 18.12 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.746e-05/0.2214, allocations: 203.5 kB / 416.7 MB, free: 17.92 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.211e-05/0.2214, allocations: 31.62 kB / 416.7 MB, free: 17.89 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.479e-05/0.2215, allocations: 57.83 kB / 416.7 MB, free: 17.82 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 4.746e-05/0.2216, allocations: 342.8 kB / 417.1 MB, free: 17.48 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003182/0.2219, allocations: 104.1 kB / 417.2 MB, free: 17.38 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003525/0.2223, allocations: 207 kB / 417.4 MB, free: 17.12 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000642/0.2229, allocations: 335.9 kB / 417.7 MB, free: 16.74 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.825e-06/0.2229, allocations: 0 / 417.7 MB, free: 16.74 MB / 298.7 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.000827/0.2237, allocations: 411.6 kB / 418.1 MB, free: 16.32 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.866e-05/0.2238, allocations: 36.52 kB / 418.1 MB, free: 16.28 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.043e-06/0.2238, allocations: 4 kB / 418.1 MB, free: 16.28 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001643/0.224, allocations: 28.84 kB / 418.2 MB, free: 16.25 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000247/0.2242, allocations: 67.88 kB / 418.2 MB, free: 16.18 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006719/0.2249, allocations: 1.304 MB / 419.5 MB, free: 14.74 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003026/0.2252, allocations: 55.81 kB / 419.6 MB, free: 14.69 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.445e-05/0.2253, allocations: 19.98 kB / 419.6 MB, free: 14.67 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 (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.000103/0.2254, allocations: 152.6 kB / 419.8 MB, free: 14.51 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.107e-05/0.2254, allocations: 23.72 kB / 419.8 MB, free: 14.49 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.872e-05/0.2254, allocations: 26.61 kB / 419.8 MB, free: 14.46 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.653e-06/0.2255, allocations: 0 / 419.8 MB, free: 14.46 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.096e-06/0.2255, allocations: 4 kB / 419.8 MB, free: 14.46 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.118e-06/0.2255, allocations: 8 kB / 419.8 MB, free: 14.45 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002925/0.2258, allocations: 459 kB / 420.3 MB, free: 13.95 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.524e-06/0.2258, allocations: 4 kB / 420.3 MB, free: 13.94 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001605/0.2259, allocations: 27.97 kB / 420.3 MB, free: 13.91 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.328e-05/0.226, allocations: 33.23 kB / 420.3 MB, free: 13.88 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.241e-05/0.2261, allocations: 0 / 420.3 MB, free: 13.88 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006118/0.2267, allocations: 1.307 MB / 421.6 MB, free: 12.44 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.042e-06/0.2267, allocations: 0 / 421.6 MB, free: 12.44 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001038/0.2277, allocations: 0.9452 MB / 422.6 MB, free: 11.43 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.1e-05/0.2278, allocations: 100.8 kB / 422.7 MB, free: 11.31 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.426e-05/0.2278, allocations: 15.94 kB / 422.7 MB, free: 11.29 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002148/0.2281, allocations: 23.97 kB / 422.7 MB, free: 11.27 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.624e-05/0.2281, allocations: 19.91 kB / 422.8 MB, free: 11.25 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.144e-05/0.2282, allocations: 4 kB / 422.8 MB, free: 11.25 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001649/0.2283, allocations: 231.1 kB / 423 MB, free: 11.02 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.2283, allocations: 0 / 423 MB, free: 11.02 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0003945/0.2287, allocations: 71.84 kB / 423 MB, free: 10.95 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.0001097/0.2288, allocations: 107.2 kB / 423.2 MB, free: 10.84 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0008729/0.2297, allocations: 406.1 kB / 423.6 MB, free: 10.41 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 3.136e-06/0.2297, allocations: 0 / 423.6 MB, free: 10.41 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004167/0.2302, allocations: 219.3 kB / 423.8 MB, free: 10.19 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003022/0.2305, allocations: 41.36 kB / 423.8 MB, free: 10.15 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000854/0.2313, allocations: 0.687 MB / 424.5 MB, free: 9.418 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001441/0.2315, allocations: 0.756 MB / 425.2 MB, free: 8.637 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.0001217/0.2316, allocations: 42.91 kB / 425.3 MB, free: 8.598 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.214e-05/0.2317, allocations: 23.42 kB / 425.3 MB, free: 8.574 MB / 298.7 MB Notification: Performance of SimCode: time 3.11e-07/0.2317, allocations: 0 / 425.3 MB, free: 8.574 MB / 298.7 MB Notification: Performance of Templates: time 0.005029/0.2367, allocations: 3.108 MB / 428.4 MB, free: 5.5 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@2/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