Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_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 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.OpAmps.Comparator,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_OpAmps_Comparator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.OpAmps.Comparator,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_OpAmps_Comparator",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.002067/0.002067, allocations: 113.9 kB / 17.07 MB, free: 5.973 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.003516/0.003517, allocations: 194.9 kB / 18 MB, free: 5.059 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.996/1.996, allocations: 222.9 MB / 241.7 MB, free: 15.14 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001172/0.001172, allocations: 47.92 kB / 350.8 MB, free: 3.711 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2839/0.2851, allocations: 49.44 MB / 400.3 MB, free: 8.41 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.Comparator): time 0.003927/0.2891, allocations: 2.892 MB / 403.2 MB, free: 5.891 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001278/0.2904, allocations: 0.6895 MB / 403.8 MB, free: 5.195 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002296/0.2906, allocations: 4 kB / 403.9 MB, free: 5.191 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001833/0.2908, allocations: 55.44 kB / 403.9 MB, free: 5.137 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002468/0.2911, allocations: 103.2 kB / 404 MB, free: 5.035 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003066/0.2914, allocations: 99.88 kB / 404.1 MB, free: 4.938 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004306/0.2918, allocations: 398.4 kB / 404.5 MB, free: 4.547 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002343/0.2921, allocations: 135.9 kB / 404.6 MB, free: 4.41 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002055/0.2923, allocations: 155.4 kB / 404.8 MB, free: 4.258 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000233/0.2925, allocations: 167.3 kB / 404.9 MB, free: 4.094 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 6.04e-05/0.2926, allocations: 36 kB / 405 MB, free: 4.059 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.883e-05/0.2927, allocations: 36 kB / 405 MB, free: 4.023 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 6.697e-05/0.2927, allocations: 79.69 kB / 405.1 MB, free: 3.945 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000147/0.2929, allocations: 167.2 kB / 405.3 MB, free: 3.781 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003685/0.2933, allocations: 396.3 kB / 405.6 MB, free: 3.395 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.767e-06/0.2933, allocations: 4 kB / 405.6 MB, free: 3.391 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.333e-06/0.2933, allocations: 0 / 405.6 MB, free: 3.391 MB / 318.1 MB Notification: Performance of Transformations before backend: time 9.057e-06/0.2933, allocations: 0 / 405.6 MB, free: 3.391 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.001349/0.2947, allocations: 0.6847 MB / 406.3 MB, free: 2.652 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.803e-05/0.2947, allocations: 11.97 kB / 406.3 MB, free: 2.641 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.921e-05/0.2948, allocations: 58.73 kB / 406.4 MB, free: 2.574 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.276e-05/0.2949, allocations: 36.56 kB / 406.4 MB, free: 2.539 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003918/0.2953, allocations: 291.6 kB / 406.7 MB, free: 2.215 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.183e-05/0.2953, allocations: 20.94 kB / 406.7 MB, free: 2.195 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.025e-05/0.2953, allocations: 24.38 kB / 406.8 MB, free: 2.172 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006768/0.296, allocations: 323.7 kB / 407.1 MB, free: 1.848 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.093e-05/0.296, allocations: 0 / 407.1 MB, free: 1.848 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.822e-05/0.2961, allocations: 12 kB / 407.1 MB, free: 1.836 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.183e-06/0.2961, allocations: 4 kB / 407.1 MB, free: 1.832 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008179/0.2969, allocations: 278 kB / 407.4 MB, free: 1.559 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001755/0.2987, allocations: 1.138 MB / 408.5 MB, free: 340 kB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000816/0.2995, allocations: 202.5 kB / 408.7 MB, free: 128 kB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003164/0.2998, allocations: 92.78 kB / 408.8 MB, free: 32 kB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.562e-05/0.2999, allocations: 0 / 408.8 MB, free: 32 kB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000446/0.3003, allocations: 169.1 kB / 409 MB, free: 15.85 MB / 334.1 MB Notification: Performance of pre-optimization done (n=10): time 2.064e-06/0.3003, allocations: 0 / 409 MB, free: 15.85 MB / 334.1 MB Notification: Performance of matching and sorting (n=10): time 0.00128/0.3016, allocations: 407.1 kB / 409.4 MB, free: 15.42 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.101e-05/0.3017, allocations: 89.14 kB / 409.4 MB, free: 15.32 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003937/0.3021, allocations: 328.4 kB / 409.8 MB, free: 14.99 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.652e-05/0.3021, allocations: 25.7 kB / 409.8 MB, free: 14.96 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001311/0.3023, allocations: 215.4 kB / 410 MB, free: 14.74 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.073e-05/0.3023, allocations: 31.56 kB / 410 MB, free: 14.71 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.082e-05/0.3024, allocations: 57.83 kB / 410.1 MB, free: 14.64 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001198/0.3025, allocations: 338.8 kB / 410.4 MB, free: 14.3 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003522/0.3029, allocations: 96.16 kB / 410.5 MB, free: 14.21 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004073/0.3033, allocations: 215.7 kB / 410.7 MB, free: 13.95 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007328/0.304, allocations: 342 kB / 411.1 MB, free: 13.55 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.755e-06/0.304, allocations: 0 / 411.1 MB, free: 13.55 MB / 334.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0009855/0.305, allocations: 399.8 kB / 411.4 MB, free: 13.15 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.172e-05/0.3051, allocations: 37.77 kB / 411.5 MB, free: 13.11 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.474e-06/0.3051, allocations: 4 kB / 411.5 MB, free: 13.1 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001736/0.3053, allocations: 32.83 kB / 411.5 MB, free: 13.07 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002686/0.3056, allocations: 59.89 kB / 411.6 MB, free: 13.01 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001108/0.3067, allocations: 1.41 MB / 413 MB, free: 11.45 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003552/0.3071, allocations: 59.72 kB / 413 MB, free: 11.39 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.955e-05/0.3071, allocations: 12 kB / 413.1 MB, free: 11.38 MB / 334.1 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.0001515/0.3073, allocations: 141.8 kB / 413.2 MB, free: 11.23 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.938e-05/0.3073, allocations: 27.7 kB / 413.2 MB, free: 11.2 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.093e-05/0.3074, allocations: 26.61 kB / 413.2 MB, free: 11.18 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.577e-06/0.3074, allocations: 4 kB / 413.3 MB, free: 11.17 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.293e-06/0.3074, allocations: 11.92 kB / 413.3 MB, free: 11.16 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.516e-06/0.3074, allocations: 3.938 kB / 413.3 MB, free: 11.16 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000466/0.3079, allocations: 459.1 kB / 413.7 MB, free: 10.65 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.314e-06/0.3079, allocations: 384 / 413.7 MB, free: 10.65 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001839/0.3081, allocations: 27.97 kB / 413.7 MB, free: 10.62 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001076/0.3082, allocations: 32.81 kB / 413.8 MB, free: 10.59 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.643e-05/0.3082, allocations: 4 kB / 413.8 MB, free: 10.58 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001034/0.3092, allocations: 1.398 MB / 415.2 MB, free: 9.043 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.954e-06/0.3093, allocations: 0 / 415.2 MB, free: 9.043 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007562/0.31, allocations: 274.3 kB / 415.4 MB, free: 8.75 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001018/0.3101, allocations: 104.8 kB / 415.5 MB, free: 8.629 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.34e-05/0.3102, allocations: 0 / 415.5 MB, free: 8.629 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002302/0.3104, allocations: 27.97 kB / 415.6 MB, free: 8.602 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.479e-05/0.3105, allocations: 27.91 kB / 415.6 MB, free: 8.574 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.414e-05/0.3105, allocations: 4 kB / 415.6 MB, free: 8.57 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002581/0.3108, allocations: 231 kB / 415.8 MB, free: 8.348 MB / 334.1 MB Notification: Performance of sort global known variables: time 2.3e-07/0.3108, allocations: 0 / 415.8 MB, free: 8.348 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003737/0.3112, allocations: 71.84 kB / 415.9 MB, free: 8.277 MB / 334.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 (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.001149/0.3123, allocations: 0.8089 MB / 416.7 MB, free: 7.43 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001016/0.3134, allocations: 413.9 kB / 417.1 MB, free: 7 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.687e-06/0.3134, allocations: 0 / 417.1 MB, free: 7 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000473/0.3139, allocations: 211.4 kB / 417.3 MB, free: 6.781 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000348/0.3142, allocations: 50.88 kB / 417.4 MB, free: 6.73 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004919/0.3192, allocations: 3.141 MB / 420.5 MB, free: 3.398 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003088/0.3195, allocations: 0.748 MB / 421.3 MB, free: 2.625 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001409/0.3196, allocations: 34.95 kB / 421.3 MB, free: 2.59 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001407/0.3198, allocations: 91.39 kB / 421.4 MB, free: 2.504 MB / 334.1 MB Notification: Performance of SimCode: time 1.613e-06/0.3198, allocations: 0 / 421.4 MB, free: 2.504 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.772/2.091, allocations: 6.199 MB / 427.6 MB, free: 12.46 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 26.05/28.14, allocations: 11.91 kB / 427.6 MB, free: 12.45 MB / 350.1 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Comparator_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Analog_Examples_OpAmps_Comparator_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Analog_Examples_OpAmps_Comparator.fmu > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Comparator_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/OpAmps/Comparator/Comparator.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches