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/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/Complex 3.2.3+maint.om/package.mo): time 0.001229/0.00123, allocations: 172.6 kB / 14.1 MB, free: 1.223 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.59/1.59, allocations: 205.2 MB / 219.8 MB, free: 14.27 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008849/0.0008853, allocations: 90.62 kB / 268 MB, free: 14.1 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.661e-05/2.663e-05, allocations: 4 kB / 322.5 MB, free: 17.34 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09888/0.09892, allocations: 47.56 MB / 370 MB, free: 1.719 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3599/0.4588, allocations: 80.05 MB / 450.1 MB, free: 13.25 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002085/0.4591, allocations: 76.14 kB / 450.2 MB, free: 13.21 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01773/0.4768, allocations: 6.113 MB / 456.3 MB, free: 7.98 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.402e-06/0.4769, allocations: 0 / 456.3 MB, free: 7.98 MB / 330.7 MB Notification: Performance of Transformations before backend: time 2.212e-05/0.4769, allocations: 12 kB / 456.3 MB, free: 7.969 MB / 330.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.001037/0.478, allocations: 0.603 MB / 456.9 MB, free: 7.336 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.609e-05/0.478, allocations: 8.031 kB / 456.9 MB, free: 7.328 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.156e-05/0.4781, allocations: 35.53 kB / 456.9 MB, free: 7.293 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004128/0.4785, allocations: 297.4 kB / 457.2 MB, free: 6.992 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.305e-05/0.4785, allocations: 16.25 kB / 457.2 MB, free: 6.984 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.799e-05/0.4786, allocations: 23.62 kB / 457.3 MB, free: 6.969 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004246/0.479, allocations: 235.7 kB / 457.5 MB, free: 6.805 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.175e-05/0.4791, allocations: 0 / 457.5 MB, free: 6.805 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.501e-05/0.4791, allocations: 11.56 kB / 457.5 MB, free: 6.801 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.925e-06/0.4791, allocations: 7.938 kB / 457.5 MB, free: 6.793 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003717/0.4795, allocations: 191 kB / 457.7 MB, free: 6.676 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002043/0.4815, allocations: 1.128 MB / 458.8 MB, free: 5.656 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003523/0.4819, allocations: 120.8 kB / 458.9 MB, free: 5.566 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.089e-05/0.482, allocations: 44.3 kB / 459 MB, free: 5.535 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.224e-05/0.4821, allocations: 4.188 kB / 459 MB, free: 5.531 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002258/0.4823, allocations: 121 kB / 459.1 MB, free: 5.414 MB / 330.7 MB Notification: Performance of pre-optimization done (n=11): time 1.373e-06/0.4823, allocations: 0 / 459.1 MB, free: 5.414 MB / 330.7 MB Notification: Performance of matching and sorting (n=11): time 0.0004206/0.4827, allocations: 156.7 kB / 459.3 MB, free: 5.281 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.326e-05/0.4828, allocations: 89.08 kB / 459.3 MB, free: 5.176 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003328/0.4831, allocations: 288.6 kB / 459.6 MB, free: 4.945 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 2.516e-05/0.4832, allocations: 29.64 kB / 459.7 MB, free: 4.914 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001365/0.4833, allocations: 201.4 kB / 459.8 MB, free: 4.75 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.606e-05/0.4834, allocations: 39.41 kB / 459.9 MB, free: 4.715 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.226e-05/0.4834, allocations: 3.875 kB / 459.9 MB, free: 4.715 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.000146/0.4835, allocations: 334.2 kB / 460.2 MB, free: 4.391 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001041/0.4836, allocations: 55.39 kB / 460.3 MB, free: 4.359 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001974/0.4839, allocations: 169.8 kB / 460.4 MB, free: 4.148 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001643/0.484, allocations: 102.5 kB / 460.5 MB, free: 4.043 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.174e-06/0.484, allocations: 0 / 460.5 MB, free: 4.043 MB / 330.7 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0005023/0.4846, allocations: 315.8 kB / 460.8 MB, free: 3.719 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0006113/0.4852, allocations: 1.42 MB / 462.3 MB, free: 2.184 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.117e-06/0.4852, allocations: 4 kB / 462.3 MB, free: 2.18 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001809/0.4854, allocations: 28.84 kB / 462.3 MB, free: 2.148 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002807/0.4857, allocations: 79.83 kB / 462.4 MB, free: 2.07 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001163/0.4868, allocations: 1.3 MB / 463.7 MB, free: 0.6328 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003708/0.4872, allocations: 59.66 kB / 463.7 MB, free: 0.5742 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.58e-05/0.4873, allocations: 8 kB / 463.7 MB, free: 0.5664 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.059e-05/0.4873, allocations: 4 kB / 463.7 MB, free: 0.5625 MB / 330.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0004545/0.4877, allocations: 258.2 kB / 464 MB, free: 308 kB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.627e-06/0.4878, allocations: 4 kB / 464 MB, free: 304 kB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.853e-05/0.4879, allocations: 37.25 kB / 464 MB, free: 264 kB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002322/0.4881, allocations: 63.89 kB / 464.1 MB, free: 200 kB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009656/0.4891, allocations: 1.292 MB / 465.4 MB, free: 14.77 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003058/0.4894, allocations: 51.67 kB / 465.4 MB, free: 14.71 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.056e-05/0.4894, allocations: 11.94 kB / 465.5 MB, free: 14.7 MB / 346.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 ($whenCondition1,$PRE.vIn.signalSource.T_start,vIn.signalSource.T_start,$PRE.vIn.signalSource.count,vIn.signalSource.count) * Number of discrete 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001176/0.4896, allocations: 129 kB / 465.6 MB, free: 14.57 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.358e-05/0.4896, allocations: 23.72 kB / 465.6 MB, free: 14.55 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.384e-05/0.4897, allocations: 30.02 kB / 465.6 MB, free: 14.52 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.804e-06/0.4897, allocations: 0 / 465.6 MB, free: 14.52 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.119e-06/0.4897, allocations: 4 kB / 465.6 MB, free: 14.52 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.526e-06/0.4897, allocations: 0 / 465.6 MB, free: 14.52 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005033/0.4902, allocations: 451.1 kB / 466.1 MB, free: 14.02 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.653e-06/0.4902, allocations: 0 / 466.1 MB, free: 14.02 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001679/0.4904, allocations: 39.94 kB / 466.1 MB, free: 13.98 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001033/0.4905, allocations: 28.83 kB / 466.1 MB, free: 13.95 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.68e-05/0.4905, allocations: 8 kB / 466.2 MB, free: 13.94 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001006/0.4916, allocations: 1.292 MB / 467.4 MB, free: 12.51 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.273e-06/0.4916, allocations: 0 / 467.4 MB, free: 12.51 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003469/0.4919, allocations: 198.3 kB / 467.6 MB, free: 12.29 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.496e-05/0.492, allocations: 108.7 kB / 467.7 MB, free: 12.16 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.535e-05/0.4921, allocations: 4 kB / 467.7 MB, free: 12.16 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002358/0.4923, allocations: 39.91 kB / 467.8 MB, free: 12.12 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.179e-05/0.4924, allocations: 19.97 kB / 467.8 MB, free: 12.1 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.241e-05/0.4924, allocations: 4 kB / 467.8 MB, free: 12.1 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0002483/0.4927, allocations: 222.2 kB / 468 MB, free: 11.88 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.6e-07/0.4927, allocations: 0 / 468 MB, free: 11.88 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0005095/0.4932, allocations: 131.6 kB / 468.2 MB, free: 11.75 MB / 346.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) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001978/0.4934, allocations: 120.2 kB / 468.3 MB, free: 11.63 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0008481/0.4943, allocations: 0.5854 MB / 468.9 MB, free: 10.99 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.624e-06/0.4943, allocations: 4.062 kB / 468.9 MB, free: 10.99 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002606/0.4945, allocations: 170.6 kB / 469 MB, free: 10.81 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000292/0.4948, allocations: 40.75 kB / 469.1 MB, free: 10.77 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006108/0.4955, allocations: 305.2 kB / 469.4 MB, free: 10.45 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003121/0.4958, allocations: 0.7609 MB / 470.1 MB, free: 9.66 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.0002326/0.496, allocations: 54.95 kB / 470.2 MB, free: 9.602 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.334e-05/0.4961, allocations: 15.44 kB / 470.2 MB, free: 9.586 MB / 346.7 MB Notification: Performance of SimCode: time 3.71e-07/0.4961, allocations: 0 / 470.2 MB, free: 9.586 MB / 346.7 MB Notification: Performance of Templates: time 0.007046/0.5032, allocations: 3.472 MB / 473.7 MB, free: 6.121 MB / 346.7 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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Analog/Examples/OpAmps/Comparator/Comparator.csv","../files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches