Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_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: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.OpAmps.Comparator,fileNamePrefix="Modelica_trunk_cpp_Modelica_Electrical_Analog_Examples_OpAmps_Comparator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.OpAmps.Comparator,fileNamePrefix="Modelica_trunk_cpp_Modelica_Electrical_Analog_Examples_OpAmps_Comparator",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001032/0.001032, allocations: 196.2 kB / 17.38 MB, free: 4.312 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.219/1.219, allocations: 226.5 MB / 244.7 MB, free: 8.207 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008788/0.0008789, allocations: 96.66 kB / 296.7 MB, free: 6.934 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002201/0.0002201, allocations: 11.98 kB / 356.9 MB, free: 10.84 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1955/0.1957, allocations: 51.3 MB / 408.2 MB, free: 27.73 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.Comparator): time 0.002183/0.1979, allocations: 2.463 MB / 410.6 MB, free: 25.26 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0008163/0.1988, allocations: 0.6923 MB / 411.3 MB, free: 24.57 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001192/0.1989, allocations: 5.375 kB / 411.3 MB, free: 24.56 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001197/0.199, allocations: 39.69 kB / 411.4 MB, free: 24.52 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001403/0.1992, allocations: 72.8 kB / 411.4 MB, free: 24.45 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002153/0.1994, allocations: 84.47 kB / 411.5 MB, free: 24.37 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002387/0.1997, allocations: 350.5 kB / 411.8 MB, free: 24.03 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001756/0.1998, allocations: 112.6 kB / 412 MB, free: 23.92 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001079/0.2, allocations: 119.5 kB / 412.1 MB, free: 23.8 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001318/0.2001, allocations: 147.3 kB / 412.2 MB, free: 23.66 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 4.277e-05/0.2001, allocations: 23.94 kB / 412.2 MB, free: 23.63 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.049e-05/0.2002, allocations: 23.94 kB / 412.3 MB, free: 23.61 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 4.219e-05/0.2002, allocations: 58.81 kB / 412.3 MB, free: 23.55 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001137/0.2004, allocations: 169 kB / 412.5 MB, free: 23.38 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000189/0.2006, allocations: 288.4 kB / 412.8 MB, free: 23.1 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.889e-06/0.2006, allocations: 0 / 412.8 MB, free: 23.1 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.124e-06/0.2006, allocations: 4 kB / 412.8 MB, free: 23.1 MB / 298.7 MB Notification: Performance of Transformations before backend: time 8.245e-06/0.2006, allocations: 0 / 412.8 MB, free: 23.1 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.00103/0.2016, allocations: 0.6459 MB / 413.4 MB, free: 22.39 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.423e-05/0.2017, allocations: 8.031 kB / 413.4 MB, free: 22.39 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.015e-05/0.2017, allocations: 58.73 kB / 413.5 MB, free: 22.32 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.498e-05/0.2018, allocations: 44.53 kB / 413.5 MB, free: 22.28 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002438/0.202, allocations: 291.5 kB / 413.8 MB, free: 21.95 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.818e-05/0.2021, allocations: 20.94 kB / 413.8 MB, free: 21.93 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.485e-05/0.2021, allocations: 28.38 kB / 413.9 MB, free: 21.9 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006124/0.2027, allocations: 335.8 kB / 414.2 MB, free: 21.57 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.074e-05/0.2027, allocations: 0 / 414.2 MB, free: 21.57 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.51e-05/0.2028, allocations: 12 kB / 414.2 MB, free: 21.55 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.364e-06/0.2028, allocations: 8 kB / 414.2 MB, free: 21.55 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007239/0.2035, allocations: 302 kB / 414.5 MB, free: 21.25 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001444/0.205, allocations: 1.169 MB / 415.7 MB, free: 19.99 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007407/0.2057, allocations: 234.6 kB / 415.9 MB, free: 19.75 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002917/0.206, allocations: 104.8 kB / 416 MB, free: 19.65 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.01e-05/0.206, allocations: 4.125 kB / 416 MB, free: 19.64 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004013/0.2065, allocations: 173 kB / 416.2 MB, free: 19.46 MB / 298.7 MB Notification: Performance of pre-optimization done (n=10): time 1.403e-06/0.2065, allocations: 0 / 416.2 MB, free: 19.46 MB / 298.7 MB Notification: Performance of matching and sorting (n=10): time 0.001205/0.2077, allocations: 459.4 kB / 416.6 MB, free: 18.98 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.852e-05/0.2077, allocations: 77.11 kB / 416.7 MB, free: 18.89 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002535/0.208, allocations: 332.5 kB / 417 MB, free: 18.56 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.551e-05/0.208, allocations: 29.64 kB / 417.1 MB, free: 18.53 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.455e-05/0.2081, allocations: 211.5 kB / 417.3 MB, free: 18.32 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.14e-05/0.2081, allocations: 31.55 kB / 417.3 MB, free: 18.29 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.352e-05/0.2081, allocations: 4 kB / 417.3 MB, free: 18.28 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 5.124e-05/0.2082, allocations: 338.8 kB / 417.6 MB, free: 17.94 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003249/0.2085, allocations: 116.1 kB / 417.7 MB, free: 17.82 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000339/0.2089, allocations: 222.9 kB / 418 MB, free: 17.55 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006357/0.2095, allocations: 360 kB / 418.3 MB, free: 17.14 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.585e-06/0.2095, allocations: 3.938 kB / 418.3 MB, free: 17.14 MB / 298.7 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0008264/0.2104, allocations: 427.8 kB / 418.7 MB, free: 16.71 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.85e-05/0.2104, allocations: 33.7 kB / 418.8 MB, free: 16.67 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.873e-06/0.2104, allocations: 8.156 kB / 418.8 MB, free: 16.66 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001605/0.2106, allocations: 36.77 kB / 418.8 MB, free: 16.62 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000256/0.2108, allocations: 63.89 kB / 418.9 MB, free: 16.56 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006963/0.2115, allocations: 1.307 MB / 420.2 MB, free: 15.12 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003181/0.2119, allocations: 63.81 kB / 420.2 MB, free: 15.05 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.416e-05/0.2119, allocations: 16 kB / 420.3 MB, free: 15.04 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 ($whenCondition1,$PRE.vIn.signalSource.T_start,vIn.signalSource.T_start,$PRE.vIn.signalSource.count,vIn.signalSource.count) * 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 (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.0001113/0.212, allocations: 150.5 kB / 420.4 MB, free: 14.88 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.974e-05/0.2121, allocations: 31.61 kB / 420.4 MB, free: 14.85 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.7e-05/0.2121, allocations: 30.61 kB / 420.5 MB, free: 14.82 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.673e-06/0.2121, allocations: 4 kB / 420.5 MB, free: 14.82 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.497e-06/0.2121, allocations: 0 / 420.5 MB, free: 14.82 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.007e-06/0.2121, allocations: 7.938 kB / 420.5 MB, free: 14.81 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003028/0.2124, allocations: 455.1 kB / 420.9 MB, free: 14.31 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.134e-06/0.2125, allocations: 8 kB / 420.9 MB, free: 14.3 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001656/0.2126, allocations: 36 kB / 421 MB, free: 14.27 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.29e-05/0.2127, allocations: 24.84 kB / 421 MB, free: 14.24 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.402e-05/0.2127, allocations: 7.984 kB / 421 MB, free: 14.23 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005724/0.2133, allocations: 1.3 MB / 422.3 MB, free: 12.8 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.022e-06/0.2133, allocations: 0 / 422.3 MB, free: 12.8 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006599/0.214, allocations: 306.4 kB / 422.6 MB, free: 12.47 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.753e-05/0.214, allocations: 104.7 kB / 422.7 MB, free: 12.35 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.301e-05/0.2141, allocations: 8 kB / 422.7 MB, free: 12.34 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002251/0.2143, allocations: 31.97 kB / 422.7 MB, free: 12.31 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.243e-05/0.2144, allocations: 20.06 kB / 422.8 MB, free: 12.29 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.142e-05/0.2144, allocations: 7.938 kB / 422.8 MB, free: 12.29 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001658/0.2146, allocations: 227.1 kB / 423 MB, free: 12.07 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.2146, allocations: 0 / 423 MB, free: 12.07 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002923/0.2149, allocations: 71.84 kB / 423.1 MB, free: 12 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 (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.0008448/0.2157, allocations: 0.8401 MB / 423.9 MB, free: 11.12 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.000835/0.2166, allocations: 434.1 kB / 424.3 MB, free: 10.67 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.793e-06/0.2166, allocations: 0 / 424.3 MB, free: 10.67 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000402/0.217, allocations: 231.3 kB / 424.5 MB, free: 10.43 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003133/0.2173, allocations: 39.48 kB / 424.6 MB, free: 10.39 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002576/0.2199, allocations: 1.84 MB / 426.4 MB, free: 8.445 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001292/0.2201, allocations: 0.7518 MB / 427.2 MB, free: 7.664 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001281/0.2202, allocations: 87.41 kB / 427.3 MB, free: 7.578 MB / 298.7 MB Notification: Performance of SimCode: time 2.61e-07/0.2202, allocations: 3.938 kB / 427.3 MB, free: 7.574 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.965/3.185, allocations: 5.274 MB / 432.5 MB, free: 2.293 MB / 298.7 MB (rm -f Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.pipe >> ../files/Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.OpAmps.Comparator_res.mat --tempDir=temp_Modelica_trunk_cpp_Modelica_Electrical_Analog_Examples_OpAmps_Comparator_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_trunk_cpp_Modelica_Electrical_Analog_Examples_OpAmps_Comparator.fmu > Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_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","../files/Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches