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.001327/0.001327, allocations: 101.4 kB / 18.39 MB, free: 4.664 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.001338/0.001338, allocations: 189.1 kB / 19.33 MB, free: 3.738 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.299/1.299, allocations: 205.1 MB / 225.2 MB, free: 12.21 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.00123/0.00123, allocations: 51.92 kB / 329.2 MB, free: 3.266 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07899/0.08023, allocations: 46.61 MB / 375.8 MB, free: 4.547 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.Comparator): time 0.003583/0.08385, allocations: 2.832 MB / 378.7 MB, free: 1.699 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.00123/0.0851, allocations: 0.7485 MB / 379.4 MB, free: 0.9414 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001398/0.08526, allocations: 4 kB / 379.4 MB, free: 0.9375 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001704/0.08545, allocations: 51.5 kB / 379.5 MB, free: 0.8867 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001724/0.08563, allocations: 99.19 kB / 379.6 MB, free: 0.7891 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002767/0.08592, allocations: 111.8 kB / 379.7 MB, free: 0.6797 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.000367/0.08629, allocations: 394.3 kB / 380.1 MB, free: 300 kB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002249/0.08652, allocations: 147.8 kB / 380.2 MB, free: 152 kB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001543/0.08669, allocations: 147.5 kB / 380.4 MB, free: 4 kB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.1832/0.2699, allocations: 170.8 kB / 380.5 MB, free: 10.05 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001153/0.27, allocations: 35.94 kB / 380.6 MB, free: 10.05 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.321e-05/0.2701, allocations: 37.72 kB / 380.6 MB, free: 10.05 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 7.413e-05/0.2702, allocations: 78.2 kB / 380.7 MB, free: 10.04 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001793/0.2704, allocations: 171 kB / 380.8 MB, free: 9.996 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004599/0.2709, allocations: 398.6 kB / 381.2 MB, free: 9.953 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.17e-06/0.2709, allocations: 0.5625 kB / 381.2 MB, free: 9.953 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.094e-06/0.2709, allocations: 3.938 kB / 381.2 MB, free: 9.953 MB / 318.1 MB Notification: Performance of Transformations before backend: time 6.953e-06/0.2709, allocations: 0 / 381.2 MB, free: 9.953 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.001265/0.2722, allocations: 0.6772 MB / 381.9 MB, free: 9.477 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.478e-05/0.2722, allocations: 9.625 kB / 381.9 MB, free: 9.477 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.486e-05/0.2723, allocations: 33.77 kB / 382 MB, free: 9.461 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003607/0.2726, allocations: 300.3 kB / 382.3 MB, free: 9.227 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.143e-05/0.2727, allocations: 28.53 kB / 382.3 MB, free: 9.227 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.018e-05/0.2727, allocations: 23.03 kB / 382.3 MB, free: 9.227 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006468/0.2734, allocations: 287.8 kB / 382.6 MB, free: 9.191 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.094e-05/0.2734, allocations: 5.719 kB / 382.6 MB, free: 9.188 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.778e-05/0.2734, allocations: 11.22 kB / 382.6 MB, free: 9.188 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.715e-06/0.2734, allocations: 5.5 kB / 382.6 MB, free: 9.188 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008553/0.2743, allocations: 279.7 kB / 382.9 MB, free: 9.184 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001689/0.276, allocations: 1.046 MB / 383.9 MB, free: 8.699 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007089/0.2767, allocations: 200.9 kB / 384.1 MB, free: 8.672 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002664/0.277, allocations: 82.52 kB / 384.2 MB, free: 8.664 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.471e-05/0.277, allocations: 1.344 kB / 384.2 MB, free: 8.664 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003785/0.2774, allocations: 151.3 kB / 384.4 MB, free: 8.598 MB / 318.1 MB Notification: Performance of pre-optimization done (n=11): time 1.312e-06/0.2774, allocations: 0 / 384.4 MB, free: 8.598 MB / 318.1 MB Notification: Performance of matching and sorting (n=11): time 0.001126/0.2786, allocations: 395.9 kB / 384.7 MB, free: 8.445 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.517e-05/0.2786, allocations: 86.59 kB / 384.8 MB, free: 8.352 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003255/0.2789, allocations: 326.2 kB / 385.1 MB, free: 8.234 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.845e-05/0.279, allocations: 27.39 kB / 385.2 MB, free: 8.203 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001047/0.2791, allocations: 206.1 kB / 385.4 MB, free: 8.07 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.148e-05/0.2791, allocations: 41.83 kB / 385.4 MB, free: 8.047 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.268e-05/0.2792, allocations: 48.98 kB / 385.5 MB, free: 8.031 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 6.405e-05/0.2793, allocations: 339.6 kB / 385.8 MB, free: 7.715 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000321/0.2796, allocations: 102.6 kB / 385.9 MB, free: 7.707 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003487/0.28, allocations: 201.2 kB / 386.1 MB, free: 7.574 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006107/0.2806, allocations: 313.2 kB / 386.4 MB, free: 7.41 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.637e-06/0.2806, allocations: 1.094 kB / 386.4 MB, free: 7.41 MB / 318.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.000845/0.2814, allocations: 394.3 kB / 386.8 MB, free: 7.297 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.274e-05/0.2815, allocations: 39.33 kB / 386.8 MB, free: 7.262 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.708e-06/0.2815, allocations: 9.594 kB / 386.8 MB, free: 7.258 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001702/0.2817, allocations: 25.45 kB / 386.9 MB, free: 7.25 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002517/0.2819, allocations: 63.7 kB / 386.9 MB, free: 7.246 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007219/0.2827, allocations: 1.402 MB / 388.3 MB, free: 5.828 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000322/0.283, allocations: 60.59 kB / 388.4 MB, free: 5.797 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.779e-05/0.283, allocations: 14.72 kB / 388.4 MB, free: 5.797 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0003114/0.2833, allocations: 185.4 kB / 388.6 MB, free: 5.68 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0002888/0.2836, allocations: 189.1 kB / 388.8 MB, free: 5.523 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0005104/0.2842, allocations: 293.5 kB / 389 MB, free: 5.312 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.843e-06/0.2842, allocations: 0 / 389 MB, free: 5.312 MB / 318.1 MB Notification: Performance of matching and sorting (n=29) (initialization_lambda0): time 0.0007246/0.2849, allocations: 362.5 kB / 389.4 MB, free: 5.16 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.964e-05/0.2849, allocations: 37.59 kB / 389.4 MB, free: 5.125 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.27e-06/0.2849, allocations: 4.406 kB / 389.4 MB, free: 5.125 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.986e-05/0.285, allocations: 33.52 kB / 389.5 MB, free: 5.113 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002159/0.2853, allocations: 56.55 kB / 389.5 MB, free: 5.109 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006327/0.2859, allocations: 1.396 MB / 390.9 MB, free: 3.703 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002924/0.2862, allocations: 38.67 kB / 391 MB, free: 3.688 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.122e-05/0.2862, allocations: 15.53 kB / 391 MB, free: 3.684 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 9.305e-05/0.2863, allocations: 206.3 kB / 391.2 MB, free: 3.488 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.892e-05/0.2864, allocations: 29.47 kB / 391.2 MB, free: 3.473 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.969e-05/0.2864, allocations: 25.53 kB / 391.2 MB, free: 3.453 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.194e-06/0.2864, allocations: 1.062 kB / 391.2 MB, free: 3.453 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.603e-06/0.2865, allocations: 2.547 kB / 391.2 MB, free: 3.453 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.979e-06/0.2865, allocations: 5.859 kB / 391.2 MB, free: 3.449 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003834/0.2869, allocations: 456.7 kB / 391.7 MB, free: 3.07 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.763e-06/0.2869, allocations: 0 / 391.7 MB, free: 3.07 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001618/0.287, allocations: 30.48 kB / 391.7 MB, free: 3.07 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.891e-05/0.2871, allocations: 27.2 kB / 391.7 MB, free: 3.059 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.562e-05/0.2872, allocations: 8.812 kB / 391.7 MB, free: 3.055 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006826/0.2878, allocations: 1.404 MB / 393.2 MB, free: 1.641 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.543e-06/0.2879, allocations: 0 / 393.2 MB, free: 1.641 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006587/0.2885, allocations: 263.2 kB / 393.4 MB, free: 1.504 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.649e-05/0.2886, allocations: 103.4 kB / 393.5 MB, free: 1.395 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.193e-05/0.2886, allocations: 3.156 kB / 393.5 MB, free: 1.395 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002177/0.2889, allocations: 24.23 kB / 393.5 MB, free: 1.391 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.378e-05/0.2889, allocations: 16.72 kB / 393.6 MB, free: 1.387 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.131e-05/0.289, allocations: 4.219 kB / 393.6 MB, free: 1.387 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0002221/0.2892, allocations: 234.3 kB / 393.8 MB, free: 1.254 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.2892, allocations: 1.156 kB / 393.8 MB, free: 1.254 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0005072/0.2897, allocations: 126.7 kB / 393.9 MB, free: 1.23 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.0001155/0.2898, allocations: 105.3 kB / 394 MB, free: 1.137 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001315/0.2911, allocations: 0.6987 MB / 394.7 MB, free: 0.6953 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.565e-06/0.2912, allocations: 0 / 394.7 MB, free: 0.6953 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003939/0.2916, allocations: 209.5 kB / 394.9 MB, free: 0.5625 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003379/0.2919, allocations: 51.38 kB / 395 MB, free: 0.5391 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008738/0.2928, allocations: 0.4946 MB / 395.5 MB, free: 224 kB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002938/0.2931, allocations: 0.7556 MB / 396.2 MB, free: 15.52 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.227e-05/0.2932, allocations: 29.05 kB / 396.2 MB, free: 15.51 MB / 334.1 MB Notification: Performance of SimCode: time 2.3e-07/0.2932, allocations: 0 / 396.2 MB, free: 15.51 MB / 334.1 MB Notification: Performance of Templates: time 0.007423/0.3006, allocations: 4.691 MB / 400.9 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