Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Electrical.Digital.Examples.NXFER.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.Digital.Examples.NXFER,fileNamePrefix="Modelica_trunk_cpp_Modelica_Electrical_Digital_Examples_NXFER",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.NXFER,fileNamePrefix="Modelica_trunk_cpp_Modelica_Electrical_Digital_Examples_NXFER",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009966/0.0009965, allocations: 196.7 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.233/1.233, allocations: 226.5 MB / 244.7 MB, free: 8.094 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008053/0.0008054, allocations: 100.4 kB / 296.7 MB, free: 6.875 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002548/0.0002549, allocations: 4 kB / 356.8 MB, free: 10.79 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1979/0.1981, allocations: 51.3 MB / 408.1 MB, free: 27.68 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.NXFER): time 0.001129/0.1993, allocations: 1.21 MB / 409.3 MB, free: 26.47 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001204/0.2005, allocations: 0.8329 MB / 410.2 MB, free: 25.63 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.938e-05/0.2006, allocations: 0 / 410.2 MB, free: 25.63 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 6.27e-05/0.2007, allocations: 7.984 kB / 410.2 MB, free: 25.62 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 5.787e-05/0.2007, allocations: 18.02 kB / 410.2 MB, free: 25.61 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001815/0.2009, allocations: 31.97 kB / 410.2 MB, free: 25.58 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 9.554e-05/0.201, allocations: 111.7 kB / 410.3 MB, free: 25.47 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 8.567e-05/0.2011, allocations: 20.91 kB / 410.4 MB, free: 25.45 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00036/0.2015, allocations: 489.1 kB / 410.8 MB, free: 24.97 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 8.176e-05/0.2016, allocations: 75.83 kB / 410.9 MB, free: 24.89 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 3.409e-05/0.2016, allocations: 0 / 410.9 MB, free: 24.89 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 2.804e-05/0.2017, allocations: 4 kB / 410.9 MB, free: 24.89 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 5.598e-05/0.2017, allocations: 67.77 kB / 411 MB, free: 24.82 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 8.669e-05/0.2018, allocations: 133.8 kB / 411.1 MB, free: 24.69 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001638/0.202, allocations: 291.3 kB / 411.4 MB, free: 24.4 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.148e-06/0.202, allocations: 1.031 kB / 411.4 MB, free: 24.4 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.253e-06/0.202, allocations: 3.938 kB / 411.4 MB, free: 24.4 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.047e-06/0.202, allocations: 0 / 411.4 MB, free: 24.4 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: 14 * Number of variables: 14 Notification: Performance of Generate backend data structure: time 0.0004045/0.2024, allocations: 0.6645 MB / 412.1 MB, free: 23.66 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.181e-05/0.2025, allocations: 8.031 kB / 412.1 MB, free: 23.66 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.164e-05/0.2025, allocations: 34.75 kB / 412.1 MB, free: 23.61 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.609e-05/0.2025, allocations: 40.56 kB / 412.1 MB, free: 23.57 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001754/0.2027, allocations: 278.3 kB / 412.4 MB, free: 23.26 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.361e-05/0.2027, allocations: 8.375 kB / 412.4 MB, free: 23.25 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.429e-05/0.2028, allocations: 9.562 kB / 412.4 MB, free: 23.25 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002441/0.203, allocations: 133.5 kB / 412.6 MB, free: 23.11 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.205e-06/0.203, allocations: 0.9688 kB / 412.6 MB, free: 23.11 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.092e-05/0.2031, allocations: 4 kB / 412.6 MB, free: 23.11 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.977e-06/0.2031, allocations: 0 / 412.6 MB, free: 23.11 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000119/0.2032, allocations: 67.38 kB / 412.6 MB, free: 23.05 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004555/0.2037, allocations: 456.5 kB / 413.1 MB, free: 22.55 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001404/0.2038, allocations: 102.5 kB / 413.2 MB, free: 22.44 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001174/0.2039, allocations: 88.94 kB / 413.3 MB, free: 22.35 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.478e-06/0.204, allocations: 7.922 kB / 413.3 MB, free: 22.34 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002332/0.2042, allocations: 202.7 kB / 413.5 MB, free: 22.12 MB / 298.7 MB Notification: Performance of pre-optimization done (n=13): time 1.433e-06/0.2042, allocations: 0 / 413.5 MB, free: 22.12 MB / 298.7 MB Notification: Performance of matching and sorting (n=13): time 0.0005921/0.2048, allocations: 480 kB / 413.9 MB, free: 21.62 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.566e-05/0.2049, allocations: 170.2 kB / 414.1 MB, free: 21.42 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004283/0.2053, allocations: 0.509 MB / 414.6 MB, free: 20.9 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.043e-05/0.2053, allocations: 37.64 kB / 414.7 MB, free: 20.86 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.386e-05/0.2054, allocations: 101 kB / 414.7 MB, free: 20.76 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.761e-05/0.2054, allocations: 31.69 kB / 414.8 MB, free: 20.73 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.494e-05/0.2054, allocations: 0 / 414.8 MB, free: 20.73 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 3.983e-05/0.2055, allocations: 326.8 kB / 415.1 MB, free: 20.4 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000102/0.2056, allocations: 59.97 kB / 415.2 MB, free: 20.34 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001024/0.2057, allocations: 69.69 kB / 415.2 MB, free: 20.27 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002204/0.2059, allocations: 347.2 kB / 415.6 MB, free: 19.87 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.483e-06/0.2059, allocations: 0 / 415.6 MB, free: 19.87 MB / 298.7 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0004217/0.2063, allocations: 384.3 kB / 415.9 MB, free: 19.46 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.341e-05/0.2064, allocations: 118.8 kB / 416.1 MB, free: 19.32 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.84e-06/0.2064, allocations: 4 kB / 416.1 MB, free: 19.32 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.118e-05/0.2064, allocations: 0 / 416.1 MB, free: 19.32 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.642e-05/0.2064, allocations: 7.938 kB / 416.1 MB, free: 19.31 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.759e-06/0.2065, allocations: 0 / 416.1 MB, free: 19.31 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001431/0.2066, allocations: 23.95 kB / 416.1 MB, free: 19.29 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.915e-05/0.2067, allocations: 55.94 kB / 416.1 MB, free: 19.23 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 15 ($PRE.nXFERGATE.inertialDelaySensitive.y,$whenCondition1,$whenCondition2,e_table.y,x_table.y,nXFERGATE.nextstate,nXFERGATE.yy,$PRE.nXFERGATE.inertialDelaySensitive.x,nXFERGATE.inertialDelaySensitive.x,nXFERGATE.inertialDelaySensitive.y,nXFERGATE.inertialDelaySensitive.delayTime,nXFERGATE.inertialDelaySensitive.y_auxiliary,nXFERGATE.inertialDelaySensitive.y_old,nXFERGATE.inertialDelaySensitive.lh,nXFERGATE.inertialDelaySensitive.t_next) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (7): * Single equations (assignments): 3 * Array equations: 0 * Algorithm blocks: 4 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002187/0.2069, allocations: 366.7 kB / 416.5 MB, free: 18.84 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.511e-05/0.2069, allocations: 39.53 kB / 416.5 MB, free: 18.8 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.612e-05/0.207, allocations: 71.08 kB / 416.6 MB, free: 18.72 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.174e-06/0.207, allocations: 0 / 416.6 MB, free: 18.72 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.777e-06/0.207, allocations: 0 / 416.6 MB, free: 18.72 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.464e-06/0.207, allocations: 0 / 416.6 MB, free: 18.72 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006715/0.2077, allocations: 0.8323 MB / 417.4 MB, free: 17.81 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.803e-06/0.2077, allocations: 4 kB / 417.4 MB, free: 17.81 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.827e-06/0.2077, allocations: 0 / 417.4 MB, free: 17.81 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.814e-06/0.2077, allocations: 0 / 417.4 MB, free: 17.81 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.421e-05/0.2078, allocations: 19.98 kB / 417.5 MB, free: 17.79 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.964e-06/0.2078, allocations: 0 / 417.5 MB, free: 17.79 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.363e-06/0.2078, allocations: 7.875 kB / 417.5 MB, free: 17.78 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004515/0.2082, allocations: 0.5252 MB / 418 MB, free: 17.21 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002189/0.2085, allocations: 248.5 kB / 418.2 MB, free: 16.95 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.646e-05/0.2085, allocations: 12 kB / 418.3 MB, free: 16.94 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001268/0.2087, allocations: 8 kB / 418.3 MB, free: 16.93 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.729e-05/0.2087, allocations: 39.83 kB / 418.3 MB, free: 16.89 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.323e-05/0.2088, allocations: 55.98 kB / 418.4 MB, free: 16.84 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.000319/0.2091, allocations: 386.9 kB / 418.7 MB, free: 16.46 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2091, allocations: 0 / 418.7 MB, free: 16.46 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002521/0.2094, allocations: 40 kB / 418.8 MB, free: 16.43 MB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 13 ($whenCondition1,$whenCondition2,e_table.y,x_table.y,nXFERGATE.nextstate,nXFERGATE.yy,nXFERGATE.inertialDelaySensitive.x,nXFERGATE.inertialDelaySensitive.y,nXFERGATE.inertialDelaySensitive.delayTime,nXFERGATE.inertialDelaySensitive.y_auxiliary,nXFERGATE.inertialDelaySensitive.y_old,nXFERGATE.inertialDelaySensitive.lh,nXFERGATE.inertialDelaySensitive.t_next) * Number of discrete states: 13 (e_table.y,x_table.y,nXFERGATE.yy,nXFERGATE.nextstate,nXFERGATE.inertialDelaySensitive.y,nXFERGATE.inertialDelaySensitive.y_auxiliary,nXFERGATE.inertialDelaySensitive.t_next,nXFERGATE.inertialDelaySensitive.delayTime,nXFERGATE.inertialDelaySensitive.lh,nXFERGATE.inertialDelaySensitive.y_old,$whenCondition2,$whenCondition1,nXFERGATE.inertialDelaySensitive.x) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (5): * Single equations (assignments): 1 * Array equations: 0 * Algorithm blocks: 4 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0006236/0.21, allocations: 1.089 MB / 419.9 MB, free: 15.29 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0003554/0.2104, allocations: 441.5 kB / 420.3 MB, free: 14.8 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.773e-06/0.2104, allocations: 0 / 420.3 MB, free: 14.8 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001971/0.2106, allocations: 373.6 kB / 420.7 MB, free: 14.39 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005266/0.2111, allocations: 108.8 kB / 420.8 MB, free: 14.29 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001773/0.2129, allocations: 1.599 MB / 422.4 MB, free: 12.63 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002224/0.2131, allocations: 0.7986 MB / 423.2 MB, free: 11.81 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.71e-05/0.2132, allocations: 27.42 kB / 423.2 MB, free: 11.78 MB / 298.7 MB Notification: Performance of SimCode: time 4.01e-07/0.2132, allocations: 0 / 423.2 MB, free: 11.78 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.946/3.159, allocations: 2.267 MB / 425.5 MB, free: 9.512 MB / 298.7 MB (rm -f Modelica_trunk_cpp_Modelica.Electrical.Digital.Examples.NXFER.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Electrical.Digital.Examples.NXFER.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Electrical.Digital.Examples.NXFER.pipe >> ../files/Modelica_trunk_cpp_Modelica.Electrical.Digital.Examples.NXFER.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_cpp_Modelica.Electrical.Digital.Examples.NXFER_res.mat --tempDir=temp_Modelica_trunk_cpp_Modelica_Electrical_Digital_Examples_NXFER_fmu --startTime=0 --stopTime=12 --timeout=50 --tolerance=1e-06 Modelica_trunk_cpp_Modelica_Electrical_Digital_Examples_NXFER.fmu > Modelica_trunk_cpp_Modelica.Electrical.Digital.Examples.NXFER.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Electrical.Digital.Examples.NXFER_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Digital/Examples/NXFER/NXFER.csv","../files/Modelica_trunk_cpp_Modelica.Electrical.Digital.Examples.NXFER.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches